We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When webpack option has externals property is array, plugin no work.
in my file, load echarts
import echarts from 'echarts/lib/echarts'; import 'echarts/lib/chart/line'; import 'echarts/lib/chart/bar'; ......
webpack option like
{ externals: [/^echarts([a-zA-Z0-9\/]*)/], plugins: [ new WebpackCdnPlugin({ modules: [ { name: 'axios', var: 'axios', path: 'axios.min.js' }, { name: 'lodash', cdn: 'lodash.js', var: '_', path: 'lodash.min.js' }, // { name: 'echarts', var: 'echarts', paths: 'echarts.min.js' } // it not work, chunk-vendors.js still has echarts library ...... ], prod: true, publicPath: '/node_modules', prodUrl: ...... }) ] }
build app, in chunk-vendors.js still has axios and lodash library.
The text was updated successfully, but these errors were encountered:
I improved routine to update external configuration option.
82a8cc9
This improvement fixes shirotech#81 It was caused by overwriting externals configuration without checking.
Fixed the bug not to generate asset when you specified external with …
8e72c8a
…ojbect. This modification fixes shirotech#81
No branches or pull requests
When webpack option has externals property is array, plugin no work.
in my file, load echarts
webpack option like
build app, in chunk-vendors.js still has axios and lodash library.
The text was updated successfully, but these errors were encountered: