You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey,
how can I minify the script using uglify or other similar?
I'm currently doing:
gulp.task("default",function(){process.env.NODE_ENV="release";return(gulp.src("./src/lazyload.js").pipe(sourcemaps.init()).// ----------- linting --------------pipe(eslint()).pipe(eslint.format()).pipe(eslint.failAfterError()).// --> failing if errors// ----------- rolling up --------------pipe(rollup({plugins: [babel()]},"umd")).pipe(sourcemaps.write("")).pipe(gulp.dest(destFolder)).// --> writing not uglified);});
But if I try to add the following lines afterwards, the code I get in destFolder is ES6 code.
Hey,
how can I minify the script using uglify or other similar?
I'm currently doing:
But if I try to add the following lines afterwards, the code I get in
destFolder
is ES6 code.What am I doing wrong?
The text was updated successfully, but these errors were encountered: