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

问下框架是不是配置了自动转px为rpx,如何关掉这个功能? #38

Closed
18601673727 opened this issue Apr 30, 2019 · 2 comments

Comments

@18601673727
Copy link

No description provided.

@18601673727
Copy link
Author

// require('postcss-px2units')({ comment: 'NO_RPX' }),

@imyelo
Copy link
Member

imyelo commented Apr 30, 2019

嗯,在脚手架默认模板里的 postcss.config.js,去掉 postcss-px2units;或者在样式表里注释 /* NO_RPX */:

<style>
.text {
  font-size: 12px; /* NO_RPX */
}
</style>

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

No branches or pull requests

2 participants