akanix42 / meteor-css-modules

MIT License
92 stars 20 forks source link

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

Open fangjj opened 6 years ago

fangjj commented 6 years ago

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 commented 6 years ago

any update?

akanix42 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

Yeah, those are the packages that actually perform the postcss CSS modules processing.

See here for more info: https://github.com/nathantreid/meteor-css-modules/blob/master/README.md#postcss-plugins

On Tue, Jun 19, 2018, 8:08 PM redim notifications@github.com wrote:

thank you! i add juliancwirko:postcss to proccessed what CSS Modules passthroughPaths. like this. [image: image] https://user-images.githubusercontent.com/15318800/41631803-3a660fce-7469-11e8-8671-efcea42cf1ac.png it works for me. but i have a question for this. [image: image] https://user-images.githubusercontent.com/15318800/41631845-7f27b5b8-7469-11e8-8012-e8bbcd3b24e3.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/nathantreid/meteor-css-modules/issues/120#issuecomment-398592442, or mute the thread https://github.com/notifications/unsubscribe-auth/ABLBNtwAFflXQb_hAkwtCmDzb8XZwtQmks5t-aCYgaJpZM4UlnJ4 .

fangjj commented 6 years ago

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