sass配置

This commit is contained in:
huangge1199 2024-11-28 10:09:24 +08:00
parent 3caa9d2429
commit cf321196d5
3 changed files with 9 additions and 0 deletions

View File

@ -17,6 +17,7 @@
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.2.1",
"sass": "^1.81.0",
"typescript": "~5.6.2",
"vite": "^6.0.1",
"vue-tsc": "^2.1.10"

View File

@ -0,0 +1 @@
$theme-hover-color: var(--el-color-primary)

View File

@ -9,5 +9,12 @@ export default defineConfig({
alias: {
'@': resolve(__dirname, 'src')
}
},
css: {
preprocessorOptions: {
scss: {
additionalData: `@import "@/assets/styles/variables.module.scss";`
}
}
}
})