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

[Feature Request]增加配置项,用于声明某些css/scss文件编译成单独的wxss/css #541

Closed
tourze opened this issue Aug 28, 2018 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@tourze
Copy link
Contributor

tourze commented Aug 28, 2018

有些项目,为了方便会抽象出很多组件。然后这些业务组件一般会依赖一些自有的或第三方样式,如iconfont和weui。现在taro是js里import了样式文件就直接合并,最终会导致组件的体积十分庞大。

建议:

  1. 增加配置项,用于声明某些css/scss文件编译成单独的wxss/css
  2. 在上面配置项中的样式不合并,而是@import引入
@luckyadam luckyadam self-assigned this Aug 29, 2018
@luckyadam luckyadam added the enhancement New feature or request label Aug 29, 2018
@luckyadam
Copy link
Member

这个正在优化~

@stale
Copy link

stale bot commented Oct 28, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Oct 28, 2018
@luckyadam luckyadam added CLI and removed wontfix labels Nov 30, 2018
@tourze
Copy link
Contributor Author

tourze commented Mar 14, 2019

update

@qwIvan
Copy link
Contributor

qwIvan commented Mar 15, 2019

还在优化当中吗?

@Chen-jj
Copy link
Contributor

Chen-jj commented Jul 10, 2020

Taro2、3 能够将公共样式抽离了

@Chen-jj Chen-jj closed this as completed Jul 10, 2020
@allen-hu-666
Copy link

@Chen-jj 这个问题2.2.14还有吗?我现在用默认的配置,还是合并打包了

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

No branches or pull requests

5 participants