-
Notifications
You must be signed in to change notification settings - Fork 25
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
Option to disable sass compilation #90
Comments
(stopgap solution for nuxt/module-builder#90)
Any news about this? Looks like the upstream issues have been solved! |
Should be available since unjs/mkdist#152 has been merged in |
@guibulator let's keep the discussion here, I think you can close the issue on @danielroe would you kindly 🙏 bump the |
@ennioVisco We now have the latest |
Unfortunately, I think there is still a missing step: we need to be able to specify the loaders to use (or, to tell |
Sorry for late response. This is how you can customize loaders: // build.config.ts (in root of your module project)
import { defineBuildConfig } from 'unbuild'
export default defineBuildConfig({
hooks: {
'mkdist:entry:options' (_ctx, _entry, opts) {
opts.loaders = ['js', 'vue'] // Default: ['js', 'vue', 'sass', 'postcss']
}
}
}) I guess we can make it easier (unjs/unbuild#361 and unjs/mkdist#194) and also documented for nuxt module builder. |
Sweet, thanks a lot!! |
|
If someone stumbles upon this issue, I didn't get from pi0's reply that this actually can be added ON TOP of Then, how /when |
Hi,
I've build a module containing custom components along with global sass variables with default values. A project that uses this module can overwrite the default sass values and the module components use the new values.
However with module-builder ^0.2.1 sass is compiled to css and the former sass variables are now fixed values.
So for now I use fixed version 0.2.0 or did I miss a option to disable sass compilation?
Best regards,
David
The text was updated successfully, but these errors were encountered: