Spaces:
Running
Running
Commit
·
7a92a7e
1
Parent(s):
3fd9cd9
svelte config
Browse files- svelte.config.js +16 -11
svelte.config.js
CHANGED
|
@@ -1,18 +1,23 @@
|
|
| 1 |
-
import adapter from
|
| 2 |
-
import { vitePreprocess } from
|
| 3 |
|
| 4 |
/** @type {import('@sveltejs/kit').Config} */
|
| 5 |
const config = {
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
};
|
| 17 |
|
| 18 |
export default config;
|
|
|
|
| 1 |
+
import adapter from "@sveltejs/adapter-static";
|
| 2 |
+
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
|
| 3 |
|
| 4 |
/** @type {import('@sveltejs/kit').Config} */
|
| 5 |
const config = {
|
| 6 |
+
// Consult https://svelte.dev/docs/kit/integrations
|
| 7 |
+
// for more information about preprocessors
|
| 8 |
+
preprocess: vitePreprocess(),
|
| 9 |
|
| 10 |
+
kit: {
|
| 11 |
+
// Static adapter for generating static files
|
| 12 |
+
adapter: adapter({
|
| 13 |
+
// Output directory
|
| 14 |
+
pages: "dist",
|
| 15 |
+
assets: "dist",
|
| 16 |
+
fallback: null,
|
| 17 |
+
precompress: false,
|
| 18 |
+
strict: true,
|
| 19 |
+
}),
|
| 20 |
+
},
|
| 21 |
};
|
| 22 |
|
| 23 |
export default config;
|