问题描述:
npm run build 时出现下面的问题:

Note: The code generator has deoptimised the styling of D:\base\node_modules\_element-ui@2.15.12@element-ui\lib\element-ui.common.js as it exceeds the max of 500KB.

在项目的根目录加粗样式下找到 .babelrc 文件或者babel.config.js文件,增加 “compact”: false ,如:

{
"compact": false,
  "plugins": [
    ""
  ]

}

如果不存在则手动创建该文件,并填写内容如:

{
"compact": false,
}


更多推荐