Skip to content

Commit

Permalink
chore:vite:scss: use modern compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
mark9804 committed Nov 26, 2024
1 parent 9a3276a commit 6a0d703
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
7 changes: 6 additions & 1 deletion apps/blue-archive-story-viewer/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import vue from "@vitejs/plugin-vue";
import timezone from "dayjs/plugin/timezone.js";
import utc from "dayjs/plugin/utc.js";
import vueDevTools from "vite-plugin-vue-devtools";
import UnoCSS from 'unocss/vite'
import UnoCSS from "unocss/vite";

dayjs.extend(utc);
dayjs.extend(timezone);
Expand Down Expand Up @@ -71,6 +71,11 @@ export default defineConfig({
}),
],
},
preprocessorOptions: {
scss: {
api: "modern-compiler",
},
},
},
plugins: [
vue(),
Expand Down
1 change: 1 addition & 0 deletions apps/viewer-next/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export default defineNuxtConfig({
scss: {
additionalData:
'@use "~/packages/eden-design/_styles/variables.scss" as *;',
api: "modern-compiler",
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,7 @@ export default defineConfig({
md.use(implicitFigures, {
figcaption: true,
copyAttrs: "^class$",
})
.use(imgSize);
}).use(imgSize);
},
},
vite: {
Expand All @@ -317,6 +316,7 @@ export default defineConfig({
scss: {
additionalData:
'@use "../packages/eden-design/_styles/variables.scss" as *;',
api: "modern-compiler",
},
},
},
Expand Down
3 changes: 2 additions & 1 deletion lib/ba-story-player/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import dts from "vite-plugin-dts";
import AutoImport from "unplugin-auto-import/vite";
import Components from "unplugin-vue-components/vite";
import { ElementPlusResolver } from "unplugin-vue-components/resolvers";
import ElementPlus from 'unplugin-element-plus/vite'
import ElementPlus from "unplugin-element-plus/vite";
import vueDevTools from "vite-plugin-vue-devtools";

// https://vitejs.dev/config/
Expand Down Expand Up @@ -54,6 +54,7 @@ export default defineConfig(({ mode }) => {
preprocessorOptions: {
scss: {
additionalData: '@use "./src/assets/scss/index.scss" as *;',
api: "modern-compiler",
},
},
},
Expand Down

0 comments on commit 6a0d703

Please sign in to comment.