fix scss imports with modern compiler api

This commit is contained in:
Justin Edmund 2025-09-16 01:35:05 -07:00
parent dc9898f334
commit 28ef44effc

View file

@ -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'],