We’ll probably need more information about how your SSR code is set up. I’m not sure if the built in Meteor css package actually supports it or not - I use
I will say though that I typically don’t import my CSS in to the module this way, because if you import it to the CSS file directly, you get instant CSS refresh during development, instead of a full client rebuild and refresh (and server rebuild if you have that module linked to the server bundle).
Maybe try switching to
fourseven:scss and import everything from a main .scss file (so that they get bundled - I think by default the regular css bundler will output actual import statements, instead of making a bundle). I typically still use a CSS module style file layout, but import everything directly from a main module in the client folder. You can still use vanilla CSS in
fourseven:scss if you prefer, and it’ll get bundled.
Here’s an example main.scss file from a recent relatively fresh project:
// :TODO: Find a way to gather these automatically
fourseven:scss won’t eagerly bundle scss files outside of the
/client folder at all, and won’t bundle files inside the
/client bundle if they start with underscore
_ - so you can control the bundle order.)