Skip to content

Commit 5cecb97

Browse files
committed
修改打包,升级依赖,fix sonar
1 parent 6a2db9d commit 5cecb97

File tree

9 files changed

+71599
-70319
lines changed

9 files changed

+71599
-70319
lines changed

build/webpack.config.leaflet.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,20 @@ module.exports = {
44
entry: {},
55
//入口文件输出配置
66
output: {
7-
path: './dist/',
7+
path: __dirname + '/../dist',
88
filename: 'iclient9-leaflet.js'
99
},
1010

1111
//其它解决方案配置
1212
resolve: {
13-
extensions: ['', '.js', '.json', '.css']
13+
extensions: ['.js', '.json', '.css']
1414
},
1515
externals: {
1616
'echarts': 'echarts',
1717
'leaflet': 'L'
1818
},
1919
module: {
20-
//加载器配置
21-
loaders: [
22-
// {test: /\.css$/, loader: 'style-loader!css-loader'},
23-
//{test: /\.css$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader")},
24-
//{test: /\.(png|jpg)$/, loader: "file-loader?name=images/[name].[ext]"}
20+
rules: [
2521
]
2622
},
2723

build/webpack.config.openlayers.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ module.exports = {
44
entry: {},
55
//入口文件输出配置
66
output: {
7-
path: './dist/',
7+
path: __dirname + '/../dist',
88
filename: 'iclient9-openlayers.js'
99
},
1010

1111
//其它解决方案配置
1212
resolve: {
13-
extensions: ['', '.js', '.json', '.css']
13+
extensions: ['.js', '.json', '.css']
1414
},
1515
externals: {
1616
'echarts': 'echarts',
@@ -19,12 +19,5 @@ module.exports = {
1919

2020
module: {
2121
noParse: /[\/\\]node_modules[\/\\]openlayers[\/\\]dist[\/\\]ol\.js$/,
22-
//加载器配置
23-
loaders: [
24-
25-
// {test: /\.css$/, loader: 'style-loader!css-loader'},
26-
//{test: /\.css$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader")},
27-
//{test: /\.(png|jpg)$/, loader: "file-loader?name=images/[name].[ext]"}
28-
],
29-
},
22+
}
3023
};

0 commit comments

Comments
 (0)