text: import { mdsvex } from 'mdsvex';
  import slug from 'rehype-slug';
  import preprocess from 'svelte-preprocess';
  import autoprefixer from 'autoprefixer';
  import adapter from '@sveltejs/adapter-static';
  import path from 'path';
  
  /** @type {import('@sveltejs/kit').Config} */
  const config = {
  	extensions: ['.svelte', '.md'],
  	preprocess: [
  		preprocess({
  			scss: {
  				prependData: `@use 'src/scss/functions.scss' as *;`
  			},
  			postcss: {
  				plugins: [autoprefixer()]
  			}
  		}), 
  		mdsvex({
  			extensions: ['.md'],
  			rehypePlugins: [slug]
  		})
  	],
  	kit: {
  		adapter: adapter(),
  		target: '#svelte',
  		vite: {
  			resolve: {
  				alias: {
  					'$components': path.resolve('./src/components'),
  					'$types': path.resolve('./src/types'),
  					'$data': path.resolve('./src/data'),
  					'$scss': path.resolve('./src/scss')
  				}
  			}
  		}
  	}
  };
  
  export default config;
  