Move svelte config + postcss config to package/config

This commit is contained in:
venashial
2022-04-02 23:18:57 -07:00
parent 85b7147927
commit ea1ff65db7
10 changed files with 355 additions and 321 deletions

View File

@@ -0,0 +1,15 @@
import sveltePreprocess from 'svelte-preprocess';
import Icons from 'unplugin-icons/vite';
import svelteSvg from '@poppanator/sveltekit-svg';
export const preprocess = sveltePreprocess({
postcss: true,
})
export const plugins = [svelteSvg(),
Icons({
compiler: 'svelte',
defaultClass: 'icon',
scale: 1.1428, // 1.1428rem = 16px when root size is 14px
}),
]