split echarts into own file
This commit is contained in:
parent
8886ab2262
commit
506ecdc0ff
1 changed files with 8 additions and 0 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue