Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
gulp.task('build', ['cleanBuild'], function() {
combineTool.build();
gulp.src(buildFolder + '/**/*.js')
.pipe(uglify({
compress: {
drop_console: true
}
}))
.pipe(gulp.dest(buildFolder));
gulp.src(buildFolder + '/**/*.css')
.pipe(cssnano())
.pipe(gulp.dest(buildFolder));
});
gulp.task('build', ['cleanBuild'], function() {
combineTool.build();
gulp.src(buildFolder + '/**/*.js')
.pipe(uglify({
compress: {
drop_console: true,
drop_debugger: true
}
}))
.pipe(gulp.dest(buildFolder));
gulp.src(buildFolder + '/**/*.css')
.pipe(cssnano({
safe: true
}))
.pipe(gulp.dest(buildFolder));
});