Skip to content

Commit

Permalink
chore(template): disable extractComments option in terser
Browse files Browse the repository at this point in the history
  • Loading branch information
qiqiboy committed Sep 23, 2019
1 parent 97f51eb commit cceba7d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "tiger-new",
"version": "4.1.6",
"version": "4.1.7",
"description": "tiger fed cli",
"main": "index.js",
"dependencies": {
Expand Down
5 changes: 4 additions & 1 deletion template/application/scripts/config/webpack.config.dev.js
Expand Up @@ -285,7 +285,10 @@ module.exports = {
watch: paths.appSrc,
silent: true
}),
new webpack.BannerPlugin('@author ' + pkg.author)
new webpack.BannerPlugin({
banner: '@author ' + pkg.author,
entryOnly: true
})
])
.filter(Boolean),

Expand Down
8 changes: 6 additions & 2 deletions template/application/scripts/config/webpack.config.prod.js
Expand Up @@ -111,6 +111,7 @@ module.exports = {
optimization: {
minimizer: [
new TerserPlugin({
extractComments: false,
terserOptions: {
parse: {
ecma: 8
Expand All @@ -126,7 +127,7 @@ module.exports = {
},
output: {
ecma: 5,
comments: false,
comments: /@(license|author)/i,
ascii_only: true
}
},
Expand Down Expand Up @@ -405,7 +406,10 @@ module.exports = {
silent: true,
formatter: typescriptFormatter
}),
new webpack.BannerPlugin('@author ' + pkg.author)
new webpack.BannerPlugin({
banner: '@author ' + pkg.author,
entryOnly: true
})
])
.filter(Boolean),
node: {
Expand Down

0 comments on commit cceba7d

Please sign in to comment.