Gulp Wtih Webpack-流

时间:2019-04-04 13:18:31

标签: javascript webpack gulp webpack-4 gulp-webpack

我正在使用Gulp和Webpack Stream,并且仅在gulp任务结束后才面临webpack触发器的问题,应该早点触发

[18:46:12] Using gulpfile E:\xxxx\gulpfile.js
[18:46:12] Starting 'compilenow'...
[18:46:12] Finished 'compilenow' after 346 ms
[18:46:16] Version: webpack 4.29.6
Built at: 2019-04-04 18:46:16
  Asset     Size  Chunks             Chunk Names
main.js  654 KiB    main  [emitted]  main
Entrypoint main = main.js

我不太清楚为什么。

这是我的配置

this.instance = $gulp.src( $src );
let $options = this.get_config( 'webpack', $arg );
this.instance = this.instance.pipe( $revert_path() );
let $web_pack = $webpack( $options );
this.instance = this.instance.pipe( $web_pack );
this.instance = this.instance.pipe( $revert_path() );

0 个答案:

没有答案