Add gulpfile with browser-sync.
This commit is contained in:
12
gulpfile.js
Normal file
12
gulpfile.js
Normal file
@@ -0,0 +1,12 @@
|
||||
var gulp = require('gulp');
|
||||
var browserSync = require('browser-sync').create();
|
||||
|
||||
gulp.task('serve', function() {
|
||||
browserSync.init({
|
||||
server: {
|
||||
baseDir: "./"
|
||||
},
|
||||
});
|
||||
|
||||
gulp.watch(['*.html', '*.css', '*.js']).on('change', browserSync.reload);
|
||||
});
|
||||
Reference in New Issue
Block a user