vue.config.js的webpack配置

module.exports = {
  publicPath:'/manager_cjl',  //将所有文件打包在manager_cjl下
  outputDir:'dist',                  //指定打包后的目录
  assetsDir:"static",             //css、img、js、font等资源
  //webpack配置
  configureWebpack: {
      //关闭 webpack 的性能提示
      performance: {
        hints:false
      },
      //警告 webpack 的性能提示
      // performance: {
      //   hints:'warning',      
      //   maxEntrypointSize: 50000000,   //入口起点的最大体积       
      //   maxAssetSize: 30000000,       //生成文件的最大体积   
      //   assetFilter: function(assetFilename) {   //只给出 js 文件的性能提示
      //     return assetFilename.endsWith('.js'); 
      //   }
      // }
    },
}
posted @ 2021-04-15 18:16  阿杰啊啊  阅读(1659)  评论(0)    收藏  举报