Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

以下JS文件过大(超过 500K),已跳过ES6转ES5和压缩的处理 #63

Open
a805883237 opened this issue Mar 22, 2018 · 1 comment

Comments

@a805883237
Copy link

应用开发过程中,有黄色警告,如下:

Thu Mar 22 2018 11:13:20 GMT+0800 (CST) JS 文件编译
   以下 JS 文件过大(超过 500K),已跳过 ES6 转 ES5 和压缩的处理:
      npm/lodash/lodash.js

在开发过程中没有什么影响,但是当预览的时候,会有警告:
本次编译异常:1

异常信息:
以下文件体积超过500kb, 已跳过压缩一级es6转es5处理。
npm/lodash/lodash.js

package.json : npm版本信息如下:
"labrador": "^0.6.12",
"labrador-cli": "^0.6.11",
并没有npm 版本

从 node_modules 中发现的 npm 版本是 "version": "4.17.5"

另外同事的同一个项目就没有这个警告了。
请问有什么解决方案么?

@overwhats
Copy link

lodash太大了,还是不要引进来,或是只引自己需要的部分

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants