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

支持多个单位配置,比如 rpx #3

Merged
merged 1 commit into from
Feb 15, 2017

Conversation

shepherdwind
Copy link
Contributor

使用方式

    const input = 'h1 { margin: 0 0 20rpx 20rpx; font-size: 32px; line-height: 1.2; letter-spacing: 1rpx; }';
    const output = 'h1 { margin: 0 0 0.2rem 0.2rem; font-size: 0.64rem; line-height: 1.2; letter-spacing: 0.01rem; }';
    const processed = postcss(pxtorem({
      rootValue: { px: 50, rpx: 100 },
    })).process(input).css;

    expect(processed).toBe(output);

@coveralls
Copy link

coveralls commented Feb 15, 2017

Coverage Status

Coverage increased (+0.2%) to 98.462% when pulling 67e1d50 on shepherdwind:rpx-support into c4cf164 on ant-tool:master.

@soda-x soda-x merged commit 0a19330 into soda-x:master Feb 15, 2017
@shepherdwind shepherdwind deleted the rpx-support branch February 15, 2017 03:48
@soda-x
Copy link
Owner

soda-x commented Feb 15, 2017

0.7.0

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.

3 participants