You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
472 B
21 lines
472 B
module.exports = (env, options) => {
|
|
return {
|
|
entry: {
|
|
'echarts-wordcloud': __dirname + '/index.js'
|
|
},
|
|
output: {
|
|
libraryTarget: 'umd',
|
|
library: ['echarts-wordcloud'],
|
|
path: __dirname + '/dist',
|
|
filename: options.mode === 'production' ? '[name].min.js' : '[name].js'
|
|
},
|
|
optimization: {
|
|
concatenateModules: true
|
|
},
|
|
devtool: 'source-map',
|
|
externals: {
|
|
'echarts/lib/echarts': 'echarts'
|
|
}
|
|
};
|
|
};
|