Skip to content

Commit 9d64907

Browse files
AmaseCocoaliumingye
authored andcommitted
fix: sassのmodern-compilerを使うように (misskey-dev#14651)
* fix(frontend-embed): ビルド時にsassのmodern-compilerを使うように * fix(frontend): ビルド時にsassのmodern-compilerを使うように
1 parent 13f5c45 commit 9d64907

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

packages/frontend-embed/vite.config.ts

+5
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ export function getConfig(): UserConfig {
9090
return shortId + '-' + toBase62(hash(id)).substring(0, 4);
9191
},
9292
},
93+
preprocessorOptions: {
94+
scss: {
95+
api: 'modern-compiler',
96+
},
97+
},
9398
},
9499

95100
define: {

packages/frontend/vite.config.ts

+5
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ export function getConfig(): UserConfig {
109109
return shortId + '-' + toBase62(hash(id)).substring(0, 4);
110110
},
111111
},
112+
preprocessorOptions: {
113+
scss: {
114+
api: 'modern-compiler',
115+
},
116+
},
112117
},
113118

114119
define: {

0 commit comments

Comments
 (0)