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
This commit is contained in:
parent
72a5f0d086
commit
3668131f2e
|
@ -7,7 +7,6 @@ import postcss from "gulp-postcss";
|
||||||
import cssImport from "postcss-import";
|
import cssImport from "postcss-import";
|
||||||
import cssnext from "postcss-cssnext";
|
import cssnext from "postcss-cssnext";
|
||||||
import BrowserSync from "browser-sync";
|
import BrowserSync from "browser-sync";
|
||||||
import watch from "gulp-watch";
|
|
||||||
import webpack from "webpack";
|
import webpack from "webpack";
|
||||||
import webpackConfig from "./webpack.conf";
|
import webpackConfig from "./webpack.conf";
|
||||||
|
|
||||||
|
@ -63,10 +62,10 @@ gulp.task("server", ["hugo", "css", "js", "fonts"], () => {
|
||||||
baseDir: "./dist"
|
baseDir: "./dist"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
watch("./src/js/**/*.js", () => { gulp.start(["js"]) });
|
gulp.watch("./src/js/**/*.js", ["js"]);
|
||||||
watch("./src/css/**/*.css", () => { gulp.start(["css"]) });
|
gulp.watch("./src/css/**/*.css", ["css"]);
|
||||||
watch("./src/fonts/**/*", () => { gulp.start(["fonts"]) });
|
gulp.watch("./src/fonts/**/*", ["fonts"]);
|
||||||
watch("./site/**/*", () => { gulp.start(["hugo"]) });
|
gulp.watch("./site/**/*", ["hugo"]);
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Reference in New Issue