Webpack highcharts 打包处理

//模块导入 Highcharts

1
2
global.HighchartsAdapter = require('exports?HighchartsAdapter!../../bower_components/highcharts/adapters/standalone-framework.src');
module.exports = require('exports?Highcharts!../../bower_components/highcharts/highcharts.src');

在entry.js文件中加入这行代码

1
2
../../bower_components/highcharts/adapters/standalone-framework.src
../../bower_components/highcharts/highcharts.src

这两行在上面的位置代表文件的位置