1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-18 08:38:45 +09:00

Enable toplevel mangling

This commit is contained in:
syuilo 2017-05-25 16:45:18 +09:00
parent c4598c2606
commit 10019ceb6d

View File

@ -120,7 +120,9 @@ gulp.task('webpack', done => {
gulp.task('build:client:script', () =>
gulp.src(['./src/web/app/boot.js', './src/web/app/safe.js'])
.pipe(replace('VERSION', JSON.stringify(version)))
.pipe(isProduction ? uglify() : gutil.noop())
.pipe(isProduction ? uglify({
toplevel: true
}) : gutil.noop())
.pipe(gulp.dest('./built/web/assets/')) as any
);