forked from ecomfe/echarts-gl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
26 lines (25 loc) · 752 Bytes
/
webpack.config.js
File metadata and controls
26 lines (25 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
var PROD = process.argv.indexOf('-p') >= 0;
var webpack = require('webpack');
var CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
module.exports = {
plugins: [
// new webpack.optimize.ModuleConcatenationPlugin(),
new CaseSensitivePathsPlugin({}),
new webpack.DefinePlugin({
'typeof __DEV__': JSON.stringify('boolean'),
__DEV__: PROD ? false : true
})
],
entry: {
'echarts-gl': __dirname + '/index.js'
},
output: {
libraryTarget: 'umd',
library: ['echarts-gl'],
path: __dirname + '/dist',
filename: PROD ? '[name].min.js' : '[name].js'
},
externals: {
'echarts/lib/echarts': 'echarts'
}
};