Vue CDN

// 打包cdn优化
const WebpackCdnPlugin = require('webpack-cdn-plugin');
configureWebpack.plugins
new WebpackCdnPlugin({
  modules: [{
    name: 'vue',
    var: 'Vue',
    path: 'vue.runtime.min.js',
    // 单独配置
    // 会覆盖整体配置
    prodUrl: '//a.xingqiu.tv/xqbl/:path'
  }]
  publicPath: '/node_modules',
  // 整体配置
  prodUrl: '//res.appbocai.com/xqbl/:path'
});

相关推荐