Files
ComfyBox/svelte.config.js
2023-05-09 16:28:49 -05:00

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;