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

这个插件没有添加extract: false,又由于后编译,页面多的时候导致build的时候堆爆了 #4

Closed
hezhongfeng opened this issue Dec 20, 2018 · 2 comments

Comments

@hezhongfeng
Copy link

需要在vue.config.js添加css配置

css.extract: false

害惨我了,找了很久的时间才找到这里的问题,建议尽快发布个新版
vuejs/vue-cli#3091

@dolymood
Copy link
Member

看了下你说的那个 issue,目测一般情况下不会出现,可能因为你们项目本身大所以出现了这个问题,这个可以在 vue.config.js 中直接配置即可。

不过还是要多谢反馈,以防其他人会遇到类似的坑,好像说的那个限制问题,webpack好像是已知的 issue,目前只能通过这种方式解决了,待相关插件修复后可正常使用。

@hezhongfeng
Copy link
Author

根本原因是webpack抽离css的问题,间接原因是后编译后超大的css和我们本身项目比较大的原因,但还是建议加上这个设置,因为在vue-cli < 3的里面提到了这个,所以目前的项目并没有问题,我先关掉了。

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