Merge pull request #48 from chrisgeary92/fix_46-gulp-watch
Replace gulp.watch() with the gulp-watch package
This commit is contained in:
commit
19c62845fd
|
@ -6,6 +6,7 @@ import postcss from "gulp-postcss";
|
|||
import cssImport from "postcss-import";
|
||||
import cssnext from "postcss-cssnext";
|
||||
import BrowserSync from "browser-sync";
|
||||
import watch from "gulp-watch";
|
||||
import webpack from "webpack";
|
||||
import webpackConfig from "./webpack.conf";
|
||||
|
||||
|
@ -53,9 +54,9 @@ gulp.task("server", ["hugo", "css", "js"], () => {
|
|||
baseDir: "./dist"
|
||||
}
|
||||
});
|
||||
gulp.watch("./src/js/**/*.js", ["js"]);
|
||||
gulp.watch("./src/css/**/*.css", ["css"]);
|
||||
gulp.watch("./site/**/*", ["hugo"]);
|
||||
watch("./src/js/**/*.js", () => { gulp.start(["js"]) });
|
||||
watch("./src/css/**/*.css", () => { gulp.start(["css"]) });
|
||||
watch("./site/**/*", () => { gulp.start(["hugo"]) });
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
"gulp-babel": "^6.1.2",
|
||||
"gulp-postcss": "^6.1.1",
|
||||
"gulp-util": "^3.0.7",
|
||||
"gulp-watch": "^4.3.11",
|
||||
"hugo-bin": "^0.13.0",
|
||||
"imports-loader": "^0.7.1",
|
||||
"postcss-cssnext": "^2.7.0",
|
||||
|
|
Reference in New Issue