mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 07:03:09 +02:00
Enable toplevel mangling
This commit is contained in:
parent
c4598c2606
commit
10019ceb6d
1 changed files with 3 additions and 1 deletions
|
@ -120,7 +120,9 @@ gulp.task('webpack', done => {
|
||||||
gulp.task('build:client:script', () =>
|
gulp.task('build:client:script', () =>
|
||||||
gulp.src(['./src/web/app/boot.js', './src/web/app/safe.js'])
|
gulp.src(['./src/web/app/boot.js', './src/web/app/safe.js'])
|
||||||
.pipe(replace('VERSION', JSON.stringify(version)))
|
.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
|
.pipe(gulp.dest('./built/web/assets/')) as any
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue