forked from didirus/AstralRinth
Move svelte config + postcss config to package/config
This commit is contained in:
15
src/package/config/svelte.config.js
Normal file
15
src/package/config/svelte.config.js
Normal 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
|
||||
}),
|
||||
]
|
||||
Reference in New Issue
Block a user