webpack plugin for download some remotes static resources to local.
npm install webpack-cdn2local-plugin -S
1. add 'cdn="JSZXtrue"' in the script you need to Pull down from remote CDN or other location
EXAMPLE:
<script src="//at.alicdn.com/t/font_580979_7zusmqtgkt7.js" cdn="JSZXtrue"></script>
- update your webpack.config.js in the production mode
EXAMPLE:
const Cdn2Local = require('webpack-cdn2local-plugin');
plugins:[
...,
new Cdn2Local()
]