Skip to content

Commit

Permalink
Remove use gulp.start()
Browse files Browse the repository at this point in the history
gulp.start() is never officially supported by gulp, it's better to use the functionality provided by gulp.watch(). 

See: gulpjs/gulp#755
  • Loading branch information
burmecia authored and erquhart committed Feb 22, 2018
1 parent 23f8c11 commit de336fb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ 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";

Expand Down Expand Up @@ -63,10 +62,10 @@ gulp.task("server", ["hugo", "css", "js", "fonts"], () => {
baseDir: "./dist"
}
});
watch("./src/js/**/*.js", () => { gulp.start(["js"]) });
watch("./src/css/**/*.css", () => { gulp.start(["css"]) });
watch("./src/fonts/**/*", () => { gulp.start(["fonts"]) });
watch("./site/**/*", () => { gulp.start(["hugo"]) });
gulp.watch("./src/js/**/*.js", ["js"]);
gulp.watch("./src/css/**/*.css", ["css"]);
gulp.watch("./src/fonts/**/*", ["fonts"]);
gulp.watch("./site/**/*", ["hugo"]);
});

/**
Expand Down

0 comments on commit de336fb

Please sign in to comment.