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

support custom css units #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

fengzilong
Copy link
Collaborator

@fengzilong fengzilong commented Jul 8, 2018

支持解析自定义 css 单位,比如小程序中的 rpx 单位,文档和测试用例都已经补上

命令行调用的方式为

mcss index.mcss --units rpx,px2

以逗号分隔

编程或配置的方式为

{
  "units": [ "rpx" ]
}

另外修复了一个小问题:

mcss.helper.util.extend(program, config, true);

这里第三个参数是 true,导致 mcss.json 配置文件的权重大于命令行的权重,覆盖命令行的参数

@fengzilong fengzilong requested a review from leeluolee July 8, 2018 09:28
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

Successfully merging this pull request may close these issues.

1 participant