Files
housesof/svelte.config.js
Félix Péault 869debe87e Switch to API route for newsletter form submission 🫠
not using the latest SvelteKit use:enhance thingy but… hey!
2022-12-25 13:55:57 +01:00

33 lines
882 B
JavaScript

import preprocess from 'svelte-preprocess'
import adapter from '@sveltejs/adapter-vercel'
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: preprocess({
scss: {
prependData: scssImports,
renderSync: true,
}
}),
kit: {
adapter: adapter({
edge: true
}),
alias: {
$components: 'src/components',
$animations: 'src/animations',
$modules: 'src/modules',
$utils: 'src/utils',
$style: 'src/style',
},
}
}
export default config