vite/playground/css/vite.config-sass-modern.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
441 B
JavaScript
Raw Normal View History

import { defineConfig } from 'vite'
import baseConfig from './vite.config.js'
export default defineConfig({
...baseConfig,
css: {
...baseConfig.css,
preprocessorOptions: {
...baseConfig.css.preprocessorOptions,
scss: {
.../** @type {import('vite').SassPreprocessorOptions & { api?: undefined }} */ (
baseConfig.css.preprocessorOptions.scss
),
api: 'modern',
},
},
},
})