《Webpack 报错》Note: The code generator has deoptimised the styling of as it exceeds the max of 500KB
·
Note: The code generator has deoptimised the styling of as it exceeds the max of 500KB.
原因
babel 处理文件的大小被限制在 500kb。
解决方案
项目根目录下查找 .babelrc 或 babel.config.js 文件,如果没有就创建一个(两者其一即可)。
配置如下:
// .babelrc:
{
"compact": false
}
// babel.config.js:
module.exports = {
compact: false,
}
更多推荐


所有评论(0)