-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nuxt-module-build can't handle scss files #87
Comments
Hi. This is an upstream issue with mkdist since we started to support transpiling |
So the fix kinda works. I don't get the |
The upstream issue is fixed in latest mkdist release (you can try
Sure. You can alternatively put assets directly into |
Hi,
|
@dvdmlln Can you please open an upstream issue in https://github.com/unjs/mkdist if still having problem? (closing this one since unjs/mkdist#109 is landed) |
Having a similar issue where when i try to build the module I get sass error can't find the variables but with dev:prepare and running the playground no problems here's an example https://stackblitz.com/edit/nuxt-starter-fkudyg?file=src/module.ts |
Hey @rafaelmagalhaes , did you ever find a solution to this? I'm in the same boat, where the vite preprocessorOptions does not seem to get picked up during build. Have not been able to find the solution so far |
Hey @jenseo nope, what I ended up doing was moving my SCSS to another project and installing it as a npm package |
I noticed that importing scss styles works perfectly fine during
dev
anddev:prepare
but causes an error when runningprepack
.Reproduction: https://github.com/hoersamu/nuxt-module-scss-reproduction
Does anyone have a solution on how to handle scss in nuxt modules?
The text was updated successfully, but these errors were encountered: