File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change
1
+ import autoprefixer from 'autoprefixer'
2
+
3
+ /** @type {import('postcss-load-config').Config } */
4
+ export default {
5
+ plugins : [ autoprefixer ] ,
6
+ }
Original file line number Diff line number Diff line change 1
1
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
2
2
import mdsvexConfig from './mdsvex.config.js'
3
3
import auto from '@sveltejs/adapter-auto'
4
+ import postcss from './postcss.config.js'
4
5
import { mdsvex } from 'mdsvex'
5
6
6
7
/** @type {import('@sveltejs/kit').Config } */
7
8
const config = {
8
9
extensions : [ '.svelte' , ...mdsvexConfig . extensions ] ,
9
10
preprocess : [
10
- vitePreprocess ( { scss : { silenceDeprecations : [ 'legacy-js-api' ] } } ) ,
11
+ vitePreprocess ( {
12
+ postcss,
13
+ } ) ,
11
14
mdsvex ( mdsvexConfig ) ,
12
15
] ,
13
-
14
16
kit : {
15
17
adapter : auto ( ) ,
16
18
csrf : { checkOrigin : process . env [ 'NODE_ENV' ] != 'development' } ,
17
19
} ,
18
-
19
20
vitePlugin : {
20
21
// https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/config.md#inspector
21
22
inspector : { toggleKeyCombo : 'meta-alt-control' } ,
You can’t perform that action at this time.
0 commit comments