Skip to content

Commit

Permalink
docs: include modern sass vite options (#20325)
Browse files Browse the repository at this point in the history
Co-authored-by: Kael <[email protected]>
  • Loading branch information
userquin and KaelWD authored Aug 17, 2024
1 parent 6ea68b9 commit 32362f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/docs/src/pages/en/features/sass-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ Only put variables, mixins, and functions in the settings file, styles should be
Vuetify loads precompiled CSS by default, enabling variable customization will switch to the base SASS files instead which must be recompiled with your project.
This can be a performance hit if you're using more than a few vuetify components, and also forces you to use the same SASS compiler version as us.

Performance can be improved with Vite by using the modern sass compiler. Replace your `sass` dependency with `sass-embedded`, update vite to 5.4 or later, and set [`css.preprocessorOptions.sass.api`](https://vitejs.dev/config/shared-options#css-preprocessoroptions) to `'modern-compiler'` in the vite config.

### Symlinks

PNPM and Yarn 2+ create symlinks to library files instead of copying them to node_modules, sass doesn't seem to like this and sometimes doesn't apply the configuration.
Expand Down

0 comments on commit 32362f7

Please sign in to comment.