fix scss imports with modern compiler api
This commit is contained in:
parent
dc9898f334
commit
28ef44effc
1 changed files with 10 additions and 1 deletions
|
|
@ -6,7 +6,16 @@ import { fileURLToPath, URL } from 'node:url'
|
|||
export default defineConfig({
|
||||
resolve: {
|
||||
alias: {
|
||||
$src: fileURLToPath(new URL('./src', import.meta.url))
|
||||
$src: fileURLToPath(new URL('./src', import.meta.url)),
|
||||
$themes: fileURLToPath(new URL('./src/themes', import.meta.url))
|
||||
}
|
||||
},
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
api: 'modern-compiler',
|
||||
loadPaths: [fileURLToPath(new URL('./src', import.meta.url))]
|
||||
}
|
||||
}
|
||||
},
|
||||
assetsInclude: ['**/*.svg'],
|
||||
|
|
|
|||
Loading…
Reference in a new issue