|
@@ -0,0 +1,16 @@
|
|
|
|
+const gulp = require('gulp');
|
|
|
|
+const browserSync = require('browser-sync').create();
|
|
|
|
+
|
|
|
|
+function run() {
|
|
|
|
+ browserSync.init({
|
|
|
|
+ server: {
|
|
|
|
+ baseDir: "./",
|
|
|
|
+ index: "/index.html"
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ gulp.watch('./css/**/*.css').on('change', browserSync.reload);;
|
|
|
|
+ gulp.watch('./*.html').on('change',browserSync.reload);
|
|
|
|
+ gulp.watch('./js/**/*.js').on('change', browserSync.reload);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+exports.run = run;
|