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

压缩CSS样式 #990

Closed
ghost opened this issue Nov 2, 2018 · 3 comments
Closed

压缩CSS样式 #990

ghost opened this issue Nov 2, 2018 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Nov 2, 2018

问题描述
config/prod.js 配置 csso.enabletrue,打包 H5 之后,CSS 样式并没有压缩

复现步骤

  1. config/prod.js 中配置 csso.enabletrue
  2. 执行命令:yarn build:h5
  3. 查看 dist/css/app.css 中的代码,发现没有压缩

期望行为
配置 csso.enabletrue 后,打包 H5 代码,生成的 CSS 是经过压缩的。

系统信息

  • 操作系统: [Windows 7]
  • Taro 版本 [v.1.0.7]
  • Node.js 版本 [v8.11.3]
  • 报错平台 [h5]
@Littly
Copy link
Contributor

Littly commented Nov 11, 2018

感谢反馈!已经找到问题,后续版本修复~

@Littly Littly added the bug Something isn't working label Nov 11, 2018
@Littly
Copy link
Contributor

Littly commented Nov 12, 2018

57c48d7 修复代码已提交,将在v1.1.5发布~

@ghost
Copy link
Author

ghost commented Nov 14, 2018

升级到v1.1.5真的可以了,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants