Skip to content

Commit

Permalink
fix: sassのmodern-compilerを使うように (misskey-dev#14651)
Browse files Browse the repository at this point in the history
* fix(frontend-embed): ビルド時にsassのmodern-compilerを使うように

* fix(frontend): ビルド時にsassのmodern-compilerを使うように
  • Loading branch information
AmaseCocoa authored and liumingye committed Nov 1, 2024
1 parent 13f5c45 commit 9d64907
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/frontend-embed/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ export function getConfig(): UserConfig {
return shortId + '-' + toBase62(hash(id)).substring(0, 4);
},
},
preprocessorOptions: {
scss: {
api: 'modern-compiler',
},
},
},

define: {
Expand Down
5 changes: 5 additions & 0 deletions packages/frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ export function getConfig(): UserConfig {
return shortId + '-' + toBase62(hash(id)).substring(0, 4);
},
},
preprocessorOptions: {
scss: {
api: 'modern-compiler',
},
},
},

define: {
Expand Down

0 comments on commit 9d64907

Please sign in to comment.