Skip to content

support custom css units#18

Open
nanokind wants to merge 1 commit intomasterfrom
support-custom-units
Open

support custom css units#18
nanokind wants to merge 1 commit intomasterfrom
support-custom-units

Conversation

@nanokind
Copy link
Collaborator

@nanokind nanokind commented Jul 8, 2018

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

命令行调用的方式为

mcss index.mcss --units rpx,px2

以逗号分隔

编程或配置的方式为

{
  "units": [ "rpx" ]
}

另外修复了一个小问题:

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

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

@nanokind nanokind 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