Skip to content

Sass mixins not loading properly. #26207

Answered by BackendBob
BackendBob asked this question in Help
Discussion options

You must be logged in to vote

Hey!

I did get this to work eventually, yes.
In my vite.config.ts file I added the following:

export default defineConfig({
  ...
  css: {
    preprocessorOptions: {
      scss: {
        additionalData: `@import "@/styles/partials/_mixins.scss";`,
      },
    },
  },
  ...
})

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@BackendBob
Comment options

Answer selected by BackendBob
@stuartromanek
Comment options

@BackendBob
Comment options

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