Skip to content

Commit

Permalink
chore: remove section
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin committed Aug 17, 2024
1 parent a089473 commit 22d70b7
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions packages/docs/src/pages/en/features/sass-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,38 +282,3 @@ PNPM and Yarn 2+ create symlinks to library files instead of copying them to nod
### sass-loader with `api: 'modern'`

You might have to write a custom importer plugin to load the settings file.

### sass modern compiler

If you're using Vite or Nuxt 3 (with Vite), you can enable SASS modern Vite options to improve dev server startup and build performance, you will need to:

- update Vite to `5.4.0`: `"vite": "^5.4.0"`
- update SASS to `1.77.8`: `"sass": "^1.77.8"`
- add `sass-embedded` to your dev dependencies: `"sass-embedded": "^1.77.8"`
- configure the new sass modern compiler

When using Vite, add the following option to your Vite config file:

```js { resource="vite.config.ts" }
css: {
preprocessorOptions: {
sass: {
api: 'modern-compiler'
}
}
}
```

When using Nuxt 3 with Vite, add the following option to your Nuxt config file:

```js { resource="nuxt.config.ts" }
vite: {
css: {
preprocessorOptions: {
sass: {
api: 'modern-compiler'
}
}
}
}
```

0 comments on commit 22d70b7

Please sign in to comment.