mirror of
https://github.com/2ec0b4/kaamelott-soundboard.git
synced 2025-12-08 15:43:24 +00:00
Corrige des erreurs au moment de la minification des scripts
This commit is contained in:
@@ -17,7 +17,9 @@ gulp.task("scripts-rev", function(){
|
||||
|
||||
gulp.task("scripts-min", function(){
|
||||
return gulp.src(['dist/js/app/**/*.js'])
|
||||
.pipe(uglify())
|
||||
.pipe(uglify({
|
||||
mangle: { except: ['$', 'require'] }
|
||||
}))
|
||||
.pipe(gulp.dest('dist/js/app'));
|
||||
});
|
||||
|
||||
@@ -106,5 +108,5 @@ gulp.task('sync', function() {
|
||||
});
|
||||
|
||||
gulp.task("build", function(){
|
||||
return runSequence('clean', 'sync', 'scripts-rev', 'styles-rev', 'config-rev', 'scripts-rev-replace', 'styles-rev-replace', 'config-rev-replace', 'index-rev-replace', /*'scripts-min',*/ 'styles-min');
|
||||
return runSequence('clean', 'sync', 'scripts-rev', 'styles-rev', 'config-rev', 'scripts-rev-replace', 'styles-rev-replace', 'config-rev-replace', 'index-rev-replace', 'scripts-min', 'styles-min');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user