Skip to content

Commit

Permalink
[STARTER] Apply netlify/victor-hugo 3668131
Browse files Browse the repository at this point in the history
Remove use gulp.start()

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
modille committed Apr 5, 2018
1 parent 8bb4f7f commit 6d8f088
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 6d8f088

Please sign in to comment.