[chore] Update npm packages and SvelteKit configs
This commit is contained in:
@@ -4,7 +4,7 @@ import { fileURLToPath } from 'url'
|
||||
import { dirname } from 'path'
|
||||
|
||||
const stylePath = `${dirname(fileURLToPath(import.meta.url))}/src/style`
|
||||
const scssImports = `@use "${stylePath}/imports.scss" as *;`
|
||||
export const scssImports = `@use "${stylePath}/imports.scss" as *;`
|
||||
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
const config = {
|
||||
@@ -25,15 +25,6 @@ const config = {
|
||||
$utils: 'src/utils',
|
||||
$style: 'src/style',
|
||||
},
|
||||
vite: {
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
additionalData: scssImports,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user