提交 506ecdc0 编写于 作者: P Pan 提交者: 花裤衩

split echarts into own file

上级 8886ab22
......@@ -86,6 +86,14 @@ var webpackConfig = merge(baseWebpackConfig, {
)
}
}),
// split echarts into its own file
new webpack.optimize.CommonsChunkPlugin({
async:'echarts',
minChunks(module) {
var context = module.context;
return context && (context.indexOf('echarts') >= 0 || context.indexOf('zrender') >= 0);
}
}),
// extract webpack runtime and module manifest to its own file in order to
// prevent vendor hash from being updated whenever app bundle is updated
new webpack.optimize.CommonsChunkPlugin({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册