Skip to content

Commit eb43450

Browse files
committed
【fix】优化打包
1 parent 4fbdd4c commit eb43450

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

config/webpack.prod.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,17 +145,17 @@ function getProdConfig(isMinify) {
145145
warnings: false
146146
},
147147
output: {
148-
comments: false
148+
comments: true
149149
}
150150
},
151151
extractComments: {
152152
banner: () => {
153153
return `
154154
*
155-
* @supermap/react-iclient.(http://iclient.supermap.io)
155+
* ${pkg.name}.(${pkg.homepage})
156156
* Copyright© 2000 - 2020 SuperMap Software Co.Ltd
157-
* license: Apache-2.0
158-
* version: v10.1.0-alpha
157+
* license: ${pkg.license}
158+
* version: v${pkg.version}
159159
*
160160
`;
161161
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@supermap/react-iclient",
33
"version": "10.1.0-alpha",
44
"description": "SuperMap iClient for React.js",
5-
"homepage": "http://iclient.supermap.io",
5+
"homepage": "https://iclient.supermap.io",
66
"scripts": {
77
"start": "node scripts/start.js",
88
"build": "node scripts/build.js",

0 commit comments

Comments
 (0)