We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
步骤:
pxtransform: { enable: false, config: {} }
/* #ifndef %PLATFORM% */ &:not(:first-child) { border-top: 20px solid #f5f5f5; } /* #endif */
解决方案:
postcss: { pxtransform: { enable: false, config: {} }, crossPlatformComments: { // 暂时取名 enable: true } }
总结:
第一种方案可以不动框架,比较便捷,第二种需要框架配合改动
The text was updated successfully, but these errors were encountered:
https://github.com/NervJS/taro/blob/next/packages/postcss-pxtransform/index.js
Sorry, something went wrong.
需要框架配合的改动是?
第一种方案,不需要改动框架
方案二类似于拆分出一个文件,暂时是用第一种方案做的
https://github.com/shinken008/postcss-crossplatformcomments
shinken008
No branches or pull requests
这个特性解决了什么问题?
步骤:
这个 API 长什么样?
解决方案:
i. 兼容:pxtransform 提供参数控制,关闭缩放,只生效 comments
ii. 剥离干净:pxtransform 其实也提供一个新插件处理 comments,删除 pxtransform 有关的 comments 处理代码的逻辑,但是有历史包袱
总结:
第一种方案可以不动框架,比较便捷,第二种需要框架配合改动
The text was updated successfully, but these errors were encountered: