Skip to content

Commit 481209e

Browse files
author
cbadusch
committed
Build: rebuild amd bundle, keep license notices inline #459 #460
1 parent ec60b6f commit 481209e

6 files changed

Lines changed: 325 additions & 57 deletions

File tree

amd/build/app-lazy.js

Lines changed: 79 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

amd/build/app-lazy.min.js

Lines changed: 79 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

amd/build/app-lazy.min.js.map

Lines changed: 79 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

amd/src/app-lazy.js

Lines changed: 79 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

amd/src/app-lazy.js.LICENSE.txt

Lines changed: 0 additions & 53 deletions
This file was deleted.

vue3/webpack.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,15 @@ module.exports = (env, options) => {
105105
minimizer: [
106106
new TerserPlugin({
107107
parallel: true,
108+
// Keep third-party @license notices inline instead of extracting
109+
// them to app-lazy.js.LICENSE.txt - the bundle is copied to
110+
// amd/build where a sidecar file would not be served alongside it.
111+
extractComments: false,
112+
terserOptions: {
113+
format: {
114+
comments: /@license|@preserve|^!/i,
115+
},
116+
},
108117
}),
109118
]
110119
};

0 commit comments

Comments
 (0)