Closed RobAWilkinson closed 7 years ago
This doesn't look like a CSS modules issue to me - the build plugin is only taking 191 ms:
| │ │ ├─ plugin nathantreid:css-modules 191 ms
It looks like most of your time is being spent here, in the Meteor CSS bundler/minifier:
| │ └─ ClientTarget#minifyCss...........................61,069 ms (1)
What version of Meteor are you running? CSS minification has been sped up greatly in the 1.4 releases.
.meteor/release
METEOR@1.4.2.3
This is a pretty big project, is there a chance it is parsing css thats not imported in node_modules folder?
Yes, Meteor will automatically pull in all .css files. If you are using this package to handle .css files, then you can ignore all the files under node_modules using the "ignorePaths" option in your package.json (see the Wiki for more info). Here's an example to ignore the whole node_modules folder:
"cssModules": {
"ignorePaths": [
"node_modules"
]
}
Meteor will still scan for those files and watch them for changes (that's out of our control) but they'll be excluded from the compilation process, so they won't get passed on to the minifier.
adding node_modules fixed this, awesome
I'm seeing extremely slow build times, my profile is below. It seems like css modules is the culprit: