You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works fine when I use nuxi dev playground, but it fails to compile with nuxt-module-build: SASS cannot find the declared variables / functions.
It looks like this is "expected" as nuxt-module-buidler does not instantiate the module, but I cannot seem to find any reference on how to register my additionalData.
I saw it was possible to write a build.config.ts with a defineBuildConfig but I was not able to find the correct options to use.
Is this behavior expected ?
How can I mimic / replace my module config with a build config so nuxt-module-buidler works ?
I'm writing a Nuxt Module, in this module I want to use
<style>
directly in my vue Single File Component.I have some mixins, functions and variables defined in SCSS and I want to inject them in every
<style>
so I used thevite.css.preprocessorOptions.scss.additionalData
:This works fine when I use
nuxi dev playground
, but it fails to compile withnuxt-module-build
: SASS cannot find the declared variables / functions.It looks like this is "expected" as
nuxt-module-buidler
does not instantiate the module, but I cannot seem to find any reference on how to register myadditionalData
.I saw it was possible to write a
build.config.ts
with adefineBuildConfig
but I was not able to find the correct options to use.nuxt-module-buidler
works ?References:
The text was updated successfully, but these errors were encountered: