Have a follow situation:
gulp.task('webpack', function(cb) { gulp.src('webpack-init.js') .pipe(webpack({ output: { filename: 'bundle.js', }, })) .pipe(gulp.dest('./client/js')); cb(); }); All ok, but i want to minify output file.
If i use gulp-uglify directly -
.pipe(webpack(...)) .pipe(uglify().on('error', gutil.log)) .pipe(gulp.dest('./client/js')); have an error: "Unexpected token: punc ())]" and others of that ilk.