Using webpack 2 from gulp (webpack-stream for webpack 2)? -


i trying update webpack 2. use webpack-stream run stuff gulp, appears webpack-stream using it's own dependency on webpack webpack 1.

i have not been able find webpack-stream webpack 2. there possibility use webpack 2 gulp?

you need have both webpack , webpack-stream installed:

npm install --save-dev webpack-stream npm install --save-dev webpack@2.1.0-beta.25 

then can pass webpack object second parameter webpack-stream:

var gulp = require('gulp'); var webpackstream = require('webpack-stream'); var webpack2 = require('webpack');  gulp.task('default', function() {   return gulp.src('src/entry.js')     .pipe(webpackstream({/* options */}, webpack2))     .pipe(gulp.dest('dist/')); }); 

Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -