Skip to content

Commit 2820d0a

Browse files
author
wangxingkang
committed
feat: start 执行之前,执行一次 build task
1 parent 87b33e5 commit 2820d0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gulpfile.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ gulp.task('build-with-lib', done => {
1919
gulp.task('build', gulp.parallel('build-with-es', 'build-with-lib'));
2020

2121
// watch组件修改
22-
gulp.task('start', () => {
22+
gulp.task('start', gulp.series('build', () => {
2323
debug.log('start watch ....');
2424
const componentDir = getComponentDir();
2525
gulp.watch([`${componentDir}/**/*`], gulp.parallel('build'));
26-
});
26+
}));

0 commit comments

Comments
 (0)