Add gulpfile with browser-sync.

This commit is contained in:
Arpad Csanyi
2016-01-14 00:41:48 +01:00
parent 4072a58a24
commit a06716ff8b
3 changed files with 20 additions and 0 deletions

12
gulpfile.js Normal file
View 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);
});