Closed fede-rodes closed 7 years ago
I think it should work (I don't see why not)... can you post a reproduction repo so I can take a look using your set up?
Hey @nathantreid many thanks for your quick reply :)
Here is the repo: https://github.com/fede-rodes/css-modules-ant-design
you'll need to run: 'meteor --settings settings-dev.json' after installing the NPM dependencies. In my case, it get stuck processing the files :(
I haven't yet looked into what exactly is causing the failures, but I was able to get the app running with the following ignore paths:
"ignorePaths": [
"node_modules/.*/(examples|docs|test|tests)/",
"node_modules/antd/lib/.*\\.less"
]
The first path expression deals with issues caused by a few of the react-
packages including their docs, examples, tests, etc in the npm package. This has caused a lot of failures for a lot of people, so I'm considering making it a default setting; in this case it causes Meteor to crash (but you never got that far because the antd/lib folder caused my plugin to get stuck processing files. Note that if you use this expression you can remove the other ignore path expressions that you currently have.
I'll have to look into why the antd .less files are causing the endless processing.
Awesome! I can go from there :)
I'll let you know if I get some improvements.
Thanks
BTW: it's probably a good idea to ignore node modules by default, because it's pretty disconcerting when you get those error on the console. I remember that I tried the package 3 or 4 times before getting it to work due to those errors. So, I think that would be of great help for the package to be more widely used :)
Hey @nathantreid,
I'm closing the issue since Ant + CSS-Modules is working great for me :)
Here is an example repo in case someone wants to take a look at the package.json config: https://github.com/fede-rodes/pickupgames
Thanks!
Hi Nathan,
I just started playing with CSS Modules, and was wondering if it's possible to use it along with ant-design (https://ant.design/). Ant is written in less, so not sure if this an issue... Below I copied my package.json, when I try to run my app using both CSS-Modules and ant design, it gets stuck at 'Processing fields with nathantried:css...' Any thoughts?
Thanks for your time and hard work :)
Here is my package.json