I want to remove some classes containing JS. This is currently not supported gulp-uglifyas a quality here .
I did.,
npm install uglify-js-harmony --save-dev
as was said in the previous answer, but, in general, new to the interface, I now don’t know how to transfer this source code, as I could, using gulp-uglify.
I have something like this.,
var uglify = require('uglify-js-harmony');
gulp.task('scripts', function(){
return gulp.src(bower().concat(jsFiles))
.pipe(plumber())
.pipe(concat('main.min.js'))
.pipe(uglify())
.pipe(gulp.dest(dest + 'js'))
.pipe(reload({stream:true}))
});
... but he gives me my word [17:42:40] TypeError: uglify is not a function, and I don’t understand how to do it. Thank.
source
share