-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
hi @shaq-tff tl;dr - these are actually nextjs things - e.g. here. Nextjs doesnt compile things from node_modules (and also wont accept global css from there if you're just flat importing a css file in a component). More detail: |
Beta Was this translation helpful? Give feedback.
hi @shaq-tff
tl;dr - these are actually nextjs things - e.g. here. Nextjs doesnt compile things from node_modules (and also wont accept global css from there if you're just flat importing a css file in a component).
The best solution if you still want to use scss with your bit components is to get nextjs to compile them using the next-transpile-modules package.
More detail:
Bit doesnt compile your css, so that the consuming application will compile it using it's own minification etc strategy. So in this case if your app could use sass @use etc functions/mixins and only convert to css at the bundling stage.
I do however have a task open to create a css compilation task, for those who need …