Skip to content

Commit 2c0ba96

Browse files
Updated for sass
1 parent af77586 commit 2c0ba96

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

vite.build.config.mts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ export default defineConfig({
4949
},
5050
},
5151
},
52+
css: {
53+
preprocessorOptions: {
54+
scss: {
55+
api: 'modern-compiler', // or "modern", "legacy"
56+
importers: [],
57+
},
58+
},
59+
},
5260
plugins: [
5361
commonjs(),
5462
AutoImport({

vite.config.mts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ export default defineConfig({
1515
build: {
1616
outDir: 'docs',
1717
},
18+
css: {
19+
preprocessorOptions: {
20+
scss: {
21+
api: 'modern-compiler', // or "modern", "legacy"
22+
importers: [],
23+
},
24+
},
25+
},
1826
plugins: [
1927
eslint({
2028
fix: true,

0 commit comments

Comments
 (0)