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

antd-mobile.less to be processed into PostCSS plugins, but not want to be processed into CSS Modules! #120

Open
fangjj opened this issue Jun 13, 2018 · 5 comments

Comments

@fangjj
Copy link

fangjj commented Jun 13, 2018

i want node_modules/antd-mobile/dist/antd-mobile.less to be proccessed into postcss-pxtorem plugin but not want to be proccessed into css-modules, this is rep https://github.com/fangjj/test-css-module
if i config passthroughPaths: [ "client/antd.less" ] then node_modules/antd-mobile/dist/antd-mobile.less will not be proccessed into postcss-pxtorem plugin.

@fangjj
Copy link
Author

fangjj commented Jun 14, 2018

any update?

@akanix42
Copy link
Owner

This seems like a reasonable feature to include, but I'm not sure when I'll be able to do so. I'm open to PR's as well. In the meantime, the best solution I can think of is to add juliancwirko:postcss (see instructions here: https://github.com/juliancwirko/meteor-postcss/) which will apply postcss to your files after nathantreid:css-modules has done it's part. I haven't tested it with my plugin, but I think they should be compatible.

@fangjj
Copy link
Author

fangjj commented Jun 20, 2018

thank you! i add juliancwirko:postcss to proccessed what CSS Modules passthroughPaths. like this.
image it works for me. but i have a question for this.
image

@akanix42
Copy link
Owner

akanix42 commented Jun 20, 2018 via email

@fangjj
Copy link
Author

fangjj commented Jun 20, 2018

yeah, got it. when remove this required, but it still work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants