37 lines
990 B
JavaScript
37 lines
990 B
JavaScript
import { sveltePreprocess } from 'svelte-preprocess'
|
|
import adapter from '@sveltejs/adapter-cloudflare'
|
|
import { fileURLToPath } from 'url'
|
|
import { dirname } from 'path'
|
|
|
|
const stylePath = `${dirname(fileURLToPath(import.meta.url))}/src/style`
|
|
export const scssImports = `@use "${stylePath}/imports.scss" as *;`
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
const config = {
|
|
// Preprocessors docs: https://github.com/sveltejs/svelte-preprocess
|
|
preprocess: sveltePreprocess({
|
|
scss: {
|
|
prependData: scssImports,
|
|
renderSync: true,
|
|
}
|
|
}),
|
|
|
|
kit: {
|
|
adapter: adapter({
|
|
routes: {
|
|
include: ['/*'],
|
|
exclude: ['<all>']
|
|
}
|
|
}),
|
|
alias: {
|
|
$components: 'src/components',
|
|
$animations: 'src/animations',
|
|
$modules: 'src/modules',
|
|
$utils: 'src/utils',
|
|
$style: 'src/style',
|
|
},
|
|
}
|
|
}
|
|
|
|
export default config
|