记一次vue项目打包时提示Entrypoint size limit 的警告

直接抛出问题: 

vue-cli打包项目时警告: entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.

 解决办法:

  直接在vue.config.js文件中配置: 



 performance: {
      hints: 'warning',
      // 入口起点的最大体积
      maxEntrypointSize: 50000000,
      // 生成文件的最大体积
      maxAssetSize: 30000000,
      // 只给出 js 文件的性能提示
      assetFilter: function (assetFilename) {
        return assetFilename.endsWith('.js')
      }
    }
原文地址:https://www.cnblogs.com/big--Bear/p/14663239.html