-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsvelte.config.js
49 lines (44 loc) · 1.25 KB
/
svelte.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// import adapter from "@sveltejs/adapter-auto";
import adapter from "@sveltejs/adapter-static";
import { vitePreprocess } from "@sveltejs/kit/vite";
import sveltePreprocess from "svelte-preprocess";
import postcssGlobalData from "@csstools/postcss-global-data";
import postcssPresetEnv from "postcss-preset-env";
import { mdsvex } from "mdsvex";
import mdsvexConfig from "./mdsvex.config.js";
/** @type {import("@sveltejs/kit").Config} */
const config = {
extensions: [".svelte", ...mdsvexConfig.extensions],
preprocess: [
vitePreprocess(),
sveltePreprocess({
postcss: {
plugins: [
postcssGlobalData({
files: [
"src/assets/styles/media-queries.css",
],
}),
postcssPresetEnv({
stage: 0,
features: {
"nesting-rules": true,
},
browsers: "last 2 versions",
}),
],
},
}),
mdsvex(mdsvexConfig),
],
kit: {
adapter: adapter(),
// This alias is necessary so your app will resolve the following
// import statements in your Fanny Pack components properly:
// import { defaults } from "/src/defaults";
alias: {
"/src": "src",
},
},
};
export default config;