Skip to content
Discussion options

You must be logged in to vote

So, after some further research, it seems like Vuetify doesn't load into its components the additionalData declared in sass block. And our app's components will only load the additionalData declared in scss block.

The vite.config.js should look like:

import path from 'path'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue2'
import Components from 'unplugin-vue-components/vite'
import { VuetifyResolver } from 'unplugin-vue-components/resolvers'

export default defineConfig({
  resolve: {
    alias: {
      '@/': `${path.resolve(__dirname, 'src')}/`,
    },
  },
  css: {
    preprocessorOptions: {
      scss: {
        // This block is used by Vite to load our variabl…

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
4 replies
@Doltario
Comment options

@serious-angel
Comment options

@Doltario
Comment options

@serious-angel
Comment options

Comment options

You must be logged in to vote
4 replies
@userquin
Comment options

@Doltario
Comment options

@userquin
Comment options

@Doltario
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Doltario
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants