You have the following situation:
gulp.task('webpack', function(cb) { gulp.src('webpack-init.js') .pipe(webpack({ output: { filename: 'bundle.js', }, })) .pipe(gulp.dest('./client/js')); cb(); });
Everything is fine, but I want to minimize the output file.
If I use gulp -uglify directly -
.pipe(webpack(...)) .pipe(uglify().on('error', gutil.log)) .pipe(gulp.dest('./client/js'));
have the error: "Unexpected token: punc ())]" and others from this file.
Sergey_Ksenofontov
source share