123456789101112131415 |
- var PROD = process.argv.indexOf('-p') >= 0;
- module.exports = {
- entry: {
- 'echarts': __dirname + '/index.js',
- 'echarts.simple': __dirname + '/index.simple.js',
- 'echarts.common': __dirname + '/index.common.js'
- },
- output: {
- libraryTarget: 'umd',
- library: 'echarts',
- path: __dirname + '/dist',
- filename: PROD ? '[name].min.js' : '[name].js'
- }
- };
|