Skip to content

Commit e94e88c

Browse files
committed
升级webpack到4.1.1版本 review by zhurc
1 parent 3d6607f commit e94e88c

21 files changed

+196442
-196825
lines changed

build/jsdocs/leaflet/categories.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

build/webpack.config.classic.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,22 @@ var banner = `
88
`;
99

1010
module.exports = {
11+
mode:"production",
1112
//页面入口文件配置
1213
entry: {},
1314
//入口文件输出配置
1415
output: {
1516
path: __dirname + '/../dist',
1617
filename: 'iclient-classic.js'
1718
},
19+
//不显示打包文件大小相关警告
20+
performance:{
21+
hints: false
22+
},
23+
//是否启用压缩
24+
optimization: {
25+
minimize:false
26+
},
1827

1928
//其它解决方案配置
2029
resolve: {

build/webpack.config.leaflet.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ var banner = `
1010
`;
1111

1212
module.exports = {
13+
mode:"production",
1314
//页面入口文件配置
1415
entry: {},
1516
//入口文件输出配置
@@ -18,6 +19,15 @@ module.exports = {
1819
filename: packageName + ".js"
1920
},
2021

22+
//是否启用压缩
23+
optimization: {
24+
minimize: false
25+
},
26+
//不显示打包文件大小相关警告
27+
performance: {
28+
hints: false
29+
},
30+
2131
//其它解决方案配置
2232
resolve: {
2333
extensions: ['.js', '.json', '.css']
@@ -58,7 +68,7 @@ module.exports = {
5868
}, {
5969
test: /\.js$/,
6070
enforce: "post",
61-
loaders: ['es3ify-loader'],
71+
loaders: ['es3ify-loader']
6272
}, {
6373
test: /\.css$/,
6474
use: ExtractTextPlugin.extract({

build/webpack.config.mapboxgl.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,22 @@ var banner = `
1010
`;
1111

1212
module.exports = {
13+
mode:"production",
1314
//页面入口文件配置
1415
entry: {},
1516
//入口文件输出配置
1617
output: {
1718
path: __dirname + '/../dist',
1819
filename: packageName + ".js"
1920
},
21+
//不显示打包文件大小相关警告
22+
performance:{
23+
hints: false
24+
},
25+
//是否启用压缩
26+
optimization: {
27+
minimize:false
28+
},
2029

2130
//其它解决方案配置
2231
resolve: {

build/webpack.config.openlayers.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ var banner = `
99
version: v${pkg.version}
1010
`;
1111
module.exports = {
12+
mode:"production",
1213
//页面入口文件配置
1314
entry: {},
1415
//入口文件输出配置
@@ -17,6 +18,16 @@ module.exports = {
1718
filename: packageName + ".js"
1819
},
1920

21+
//不显示打包文件大小相关警告
22+
performance:{
23+
hints: false
24+
},
25+
26+
//是否启用压缩
27+
optimization: {
28+
minimize:false
29+
},
30+
2031
//其它解决方案配置
2132
resolve: {
2233
extensions: ['.js', '.json', '.css']

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy