The following asset(s) exceed the recommended size limit (244 KiB)
configureWebpack: {
name: name,
resolve: {
alias: {
'@': resolve('src')
}
},
performance: {
hints: 'warning',
//入口起點的最大體積 整數(shù)類型(以字節(jié)為單位)
maxEntrypointSize: 50000000,
//生成文件的最大體積 整數(shù)類型(以字節(jié)為單位 300k)
maxAssetSize: 30000000,
//只給出 js 文件的性能提示
assetFilter: function (assetFilename) {
return assetFilename.endsWith('.js');
}
}
},
Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
element-ui圖標亂碼
sass版本改為1.39.0
"sass": "1.39.0",
vue.config.js配置
module.exports = {
publicPath: '/',
outputDir: 'dist',
assetsDir: 'static',
lintOnSave: false,
productionSourceMap: false,
css: {
loaderOptions: {
scss: {
sassOptions: {outputStyle: 'expanded'} // fix: 解決 element-ui 圖標 icon 偶現(xiàn)亂碼問題
}
}
},
}