-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathsvelte.config.js
More file actions
33 lines (29 loc) · 892 Bytes
/
svelte.config.js
File metadata and controls
33 lines (29 loc) · 892 Bytes
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
import adapter from "@sveltejs/adapter-node";
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
import { sveltePreprocess } from "svelte-preprocess";
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: [
sveltePreprocess({
scss: {
// Only prepend partials that we want access to everywhere
// by default. They can't have css otherwise our css output
// will be bloated. Global styles can be in our `norm.scss` file
// which is imported (`@use`d) in our root `+layout.svelte` file.
prependData:
`@use "./src/styles/_vars.scss" as *;` +
`@use "./src/styles/_mixins.scss" as *;`,
},
}),
vitePreprocess(),
],
kit: {
adapter: adapter(),
alias: {
"@": "src",
},
},
};
export default config;