sass配置
This commit is contained in:
parent
3caa9d2429
commit
cf321196d5
@ -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"
|
||||
|
1
src/assets/styles/variables.module.scss
Normal file
1
src/assets/styles/variables.module.scss
Normal file
@ -0,0 +1 @@
|
||||
$theme-hover-color: var(--el-color-primary)
|
@ -9,5 +9,12 @@ export default defineConfig({
|
||||
alias: {
|
||||
'@': resolve(__dirname, 'src')
|
||||
}
|
||||
},
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
additionalData: `@import "@/assets/styles/variables.module.scss";`
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user