revert uglify removal
This commit is contained in:
parent
19491a684e
commit
7a1a3ab64d
10
gulpfile.js
10
gulpfile.js
|
@ -76,7 +76,7 @@ gulp.task('min:js', ['clean:js'], function () {
|
||||||
], { base: '.' })
|
], { base: '.' })
|
||||||
.pipe(preprocess({ context: { cacheTag: randomString, selfHosted: selfHosted } }))
|
.pipe(preprocess({ context: { cacheTag: randomString, selfHosted: selfHosted } }))
|
||||||
.pipe(concat(paths.concatJsDest))
|
.pipe(concat(paths.concatJsDest))
|
||||||
//.pipe(uglify())
|
.pipe(uglify())
|
||||||
.pipe(gulp.dest('.'));
|
.pipe(gulp.dest('.'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -389,7 +389,7 @@ gulp.task('dist:js:app', function () {
|
||||||
.pipe(preprocess({ context: { cacheTag: randomString, selfHosted: selfHosted } }))
|
.pipe(preprocess({ context: { cacheTag: randomString, selfHosted: selfHosted } }))
|
||||||
.pipe(concat(paths.dist + '/js/app.min.js'))
|
.pipe(concat(paths.dist + '/js/app.min.js'))
|
||||||
.pipe(ngAnnotate())
|
.pipe(ngAnnotate())
|
||||||
//.pipe(uglify())
|
.pipe(uglify())
|
||||||
.pipe(gulp.dest('.'));
|
.pipe(gulp.dest('.'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -401,7 +401,7 @@ gulp.task('dist:js:fallback', function () {
|
||||||
|
|
||||||
merge(mainStream)
|
merge(mainStream)
|
||||||
.pipe(preprocess({ context: { cacheTag: randomString, selfHosted: selfHosted } }))
|
.pipe(preprocess({ context: { cacheTag: randomString, selfHosted: selfHosted } }))
|
||||||
//.pipe(uglify())
|
.pipe(uglify())
|
||||||
.pipe(rename({ suffix: '.min' }))
|
.pipe(rename({ suffix: '.min' }))
|
||||||
.pipe(gulp.dest(paths.dist + 'js'));
|
.pipe(gulp.dest(paths.dist + 'js'));
|
||||||
});
|
});
|
||||||
|
@ -414,7 +414,7 @@ gulp.task('dist:js:u2f', function () {
|
||||||
|
|
||||||
merge(mainStream)
|
merge(mainStream)
|
||||||
.pipe(concat(paths.dist + '/js/u2f.min.js'))
|
.pipe(concat(paths.dist + '/js/u2f.min.js'))
|
||||||
//.pipe(uglify())
|
.pipe(uglify())
|
||||||
.pipe(gulp.dest('.'));
|
.pipe(gulp.dest('.'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -429,7 +429,7 @@ gulp.task('dist:js:lib', function () {
|
||||||
'!' + paths.libDir + 'jquery/**/*'
|
'!' + paths.libDir + 'jquery/**/*'
|
||||||
])
|
])
|
||||||
.pipe(concat(paths.dist + '/js/lib.min.js'))
|
.pipe(concat(paths.dist + '/js/lib.min.js'))
|
||||||
//.pipe(uglify())
|
.pipe(uglify())
|
||||||
.pipe(gulp.dest('.'));
|
.pipe(gulp.dest('.'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue