24 lines
475 B
JavaScript
24 lines
475 B
JavaScript
import sveltePreprocess from "svelte-preprocess";
|
|
import path, { dirname } from 'path'
|
|
import { fileURLToPath } from 'url'
|
|
|
|
const filePath = dirname(fileURLToPath(import.meta.url))
|
|
const scssPath = `./src/scss`
|
|
|
|
const config = {
|
|
preprocess: [
|
|
sveltePreprocess({
|
|
typescript: {
|
|
compilerOptions: {
|
|
debug: true,
|
|
}
|
|
},
|
|
scss: {
|
|
prependData: `@import '${scssPath}/global.scss';`
|
|
}
|
|
})
|
|
]
|
|
};
|
|
|
|
export default config;
|