mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-25 16:01:14 +02:00
add json file to build watcher
This commit is contained in:
11
gulpfile.js
11
gulpfile.js
@@ -277,10 +277,13 @@ const buildExtension = series(
|
||||
);
|
||||
|
||||
function runWatcher(cb) {
|
||||
return watch(['src/**/*.js', 'src/**/*.jsx'], function (cbb) {
|
||||
buildExtension();
|
||||
cbb();
|
||||
});
|
||||
return watch(
|
||||
['src/**/*.js', 'src/**/*.jsx', 'src/**/*.json'],
|
||||
function (cbb) {
|
||||
buildExtension();
|
||||
cbb();
|
||||
}
|
||||
);
|
||||
cb();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user