Skip to content

Commit ccf7a8b

Browse files
committed
build: use uglify preamble option
1 parent 64d9cd1 commit ccf7a8b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: build/build.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ function buildEntry ({ input, output }) {
3232
.then(bundle => bundle.generate(output))
3333
.then(({ code }) => {
3434
if (isProd) {
35-
var minified = (output.banner ? output.banner + '\n' : '') + uglify.minify(code, {
35+
var minified = uglify.minify(code, {
3636
output: {
37+
preamble: output.banner,
3738
/* eslint-disable camelcase */
3839
ascii_only: true
3940
/* eslint-enable camelcase */

0 commit comments

Comments
 (0)