Skip to content
Snippets Groups Projects
Commit 10019ceb authored by syuilo's avatar syuilo
Browse files

Enable toplevel mangling

parent c4598c26
No related branches found
No related tags found
No related merge requests found
......@@ -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
);
......
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