在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/Linux  HTML/ 使用webpack打包出現(xiàn) it exceeds the max of &quo

使用webpack打包出現(xiàn) it exceeds the max of "500KB" 怎么解決?

 40% building modules 257/263 modules 6 active ...web/src/dashboard/router/404/index.js[BABEL] Note: The code generator has deoptimised the styling of "/Users/lisiqi/Desktop/bty/catfood_web/src/dashboard/slides/abbott-test/map/echarts-gl-2.2.2.js" as it exceeds the max of "500KB".
回答
編輯回答
笑忘初

不要打包echarts-gl-2.2.2.js,直接引入啊

2017年11月26日 17:53
編輯回答
熊出沒

你在當(dāng)前項目的目錄下搜索 .babelrc 文件 ,結(jié)果的第一個打開,
加上這行代碼 "compact": false ,

clipboard.png

2018年7月6日 08:24
編輯回答
扯機薄
{
  "compact": false,
  "ast": false,
  "sourceMaps": "inline",
  "highlightCode": true,
  "presets": ["env", "react", "stage-0"],
  "plugins": [
    "transform-runtime",
    ["transform-es2015-modules-amd", {"strict": false}],
    ["import", { "libraryName": "antd", "style": true }]
  ],
  "ignore": [
    "biz/report/**",
    "dsp-base/**/biz/tool/keywords/**"
  ]
}
2017年8月27日 20:25