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

怎么提取公用样式? #93

Closed
momtboy opened this issue Sep 28, 2018 · 5 comments
Closed

怎么提取公用样式? #93

momtboy opened this issue Sep 28, 2018 · 5 comments

Comments

@momtboy
Copy link

momtboy commented Sep 28, 2018

webpack4 + vue 怎么配置提取公用样式?

使用element-ui按需加载

@hubcarl
Copy link
Collaborator

hubcarl commented Oct 18, 2018

@momtboy 还在研究中

@HiuYanChong
Copy link

@hubcarl 尝试使用 splitChunks plugin 提取
但是服务端渲染的时候会出现错误
TypeError: Cannot read property 'call' of undefined
看了一些和这个问题可能有关的ISSUE: ISSUE1, ISSUE2
暂时不知道怎么解决, 代码在 feature/common_css 分支

@hubcarl
Copy link
Collaborator

hubcarl commented Nov 15, 2018

@momtboy @HiuYanChong easywebpack 4.10.0 已支持公共 common.css 的提取 ,请重新 rm -rf node_modules npm install or yarn install 按照依赖。详细见:https://www.yuque.com/easy-team/easywebpack/common

@MrTurnRight
Copy link

怎么使用?有例子吗?

@MrTurnRight
Copy link

我加完 optimization 都没效果

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

No branches or pull requests

4 participants