javascript - How to pass Webpack generated files to Gulp streams -
considering next webpack gulp task, how can integrated gulp in such way after compiling webpack pipes files gulp can run farther tasks?
gulp.task('webpack', function(callback) { webpackcompiler.run(function(err, stats) { if (err) { throw new plugins.util.pluginerror('webpack', err); } plugins.util.log('webpack', stats.tostring({ colors: true, })); callback(); }); }); gulp.task('set-env-dev', function() { webpackconfig.plugins = [ new webpack.bannerplugin(info.name + '\n' + info.version + ':' + date.now() + ' [development build]'), new componentplugin() ]; webpackcompiler = webpack( webpackconfig ); });
there plugin gulp allows deeper integration of webpack , gulp: https://github.com/shama/webpack-stream
javascript gulp webpack
No comments:
Post a Comment