Skip to content
Snippets Groups Projects
Commit a75ecbf5 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] Release: Fix warning message during minify js

parent 19b71943
No related branches found
No related tags found
No related merge requests found
......@@ -459,6 +459,7 @@ gulp.task('optimize-api-files:web', ['debug-api-files:web'], function(done) {
var cssFilter = filter("**/*.css", { restore: true });
var revFilesFilter = filter(['**/*', '!**/index.html', '!**/config.js'], { restore: true });
var indexFilter = filter('**/index.html', { restore: true });
var uglifyOptions = {beautify: false};
// Process index.html
gulp.src(tmpPath + '/*/index.html')
......@@ -466,7 +467,7 @@ gulp.task('optimize-api-files:web', ['debug-api-files:web'], function(done) {
// Process JS
.pipe(jsFilter)
.pipe(uglify()) // Minify any javascript sources
.pipe(uglify(uglifyOptions)) // Minify any javascript sources
.pipe(jsFilter.restore)
// Process CSS
......@@ -505,6 +506,7 @@ gulp.task('optimize-files:web', ['debug-files:web'], function(done) {
var jsFilter = filter(["**/*.js", '!**/config.js'], { restore: true });
var cssFilter = filter("**/*.css", { restore: true });
var revFilesFilter = filter(['**/*', '!**/index.html', '!**/config.js'], { restore: true });
var uglifyOptions = {beautify: false};
// Process index.html
gulp.src(tmpPath + '/index.html')
......@@ -512,7 +514,7 @@ gulp.task('optimize-files:web', ['debug-files:web'], function(done) {
// Process JS
.pipe(jsFilter)
.pipe(uglify()) // Minify any javascript sources
.pipe(uglify(uglifyOptions)) // Minify any javascript sources
.pipe(jsFilter.restore)
// Process CSS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment