Skip to content

CSS Compiler Issue #6727

Answered by benjgil
shaq-tff asked this question in Help
Dec 1, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

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 …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@shaq-tff
Comment options

@benjgil
Comment options

Answer selected by shaq-tff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants