webpack.config.js 447 B

1234567891011121314151617
  1. var PROD = process.argv.indexOf('-p') >= 0;
  2. module.exports = {
  3. entry: {
  4. 'bmap': __dirname + '/../extension/bmap/bmap.js',
  5. 'dataTool': __dirname + '/../extension/dataTool'
  6. },
  7. output: {
  8. libraryTarget: 'umd',
  9. library: ['echarts', '[name]'],
  10. path: __dirname + '/../dist/extension',
  11. filename: PROD ? '[name].min.js' : '[name].js'
  12. },
  13. externals: {
  14. 'echarts': 'echarts'
  15. }
  16. };