I am trying to minify my script files for which i am using gulp task runner And I am trying gulp-uglify plugin
Code:
gulp.task(\'concat\', function() {
The main error is generated when you're using ES6 format. Use the gulp-uglify-es module instead of 'gulp-uglify' to overcome this error.
var uglify = require('gulp-uglify-es').default;
Note: gulp-uglify-es is no longer being maintained. You may want to use terser/gulp-terser instead:
terser
gulp-terser