Skip to content
This repository has been archived by the owner on Dec 24, 2021. It is now read-only.

Remove use gulp.start() #66

Merged
merged 1 commit into from
Feb 22, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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