forked from catppuccin/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsvelte.config.js
30 lines (28 loc) · 877 Bytes
/
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
import { vitePreprocess } from "@astrojs/svelte";
// import path from "node:path";
// import { fileURLToPath } from "node:url";
// const _dirname = path.dirname(fileURLToPath(import.meta.url));
export default {
preprocess: vitePreprocess({
style: {
css: {
preprocessorOptions: {
// For some reason, this is causing a "sass [undefined]" error so
// until that's fixed, keep using relative paths in the Svelte style tags
// scss: {
// importer: [
// (url) => {
// if (url.startsWith("@styles")) {
// return {
// file: url.replace(/^\@styles/, path.join(dirname, "src", "styles")),
// };
// }
// return url;
// },
// ],
// },
},
},
},
}),
};