diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-05-25 16:45:18 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-05-25 16:45:18 +0900 |
| commit | 10019ceb6d538e030dd3f35c7c8e48baffc06e0d (patch) | |
| tree | f87fd53760b69b24526c0e917d93da083b18143f /gulpfile.ts | |
| parent | Fix (diff) | |
| download | sharkey-10019ceb6d538e030dd3f35c7c8e48baffc06e0d.tar.gz sharkey-10019ceb6d538e030dd3f35c7c8e48baffc06e0d.tar.bz2 sharkey-10019ceb6d538e030dd3f35c7c8e48baffc06e0d.zip | |
Enable toplevel mangling
Diffstat (limited to 'gulpfile.ts')
| -rw-r--r-- | gulpfile.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gulpfile.ts b/gulpfile.ts index f9bd85b438..55452fe7f0 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -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 ); |