externals 目的就是为了忽略打包,然后在 index.html 中引入 CDN的包链接

    1. // externals 在webpack中的配置
    2. module.exports = {
    3. // externals 的配置
    4. externals: {
    5. // 例如: 拒绝jQuery被打包进来
    6. jquery: 'jQuery'
    7. }
    8. }