mirror of
https://github.com/LukeHagar/skeleton.git
synced 2025-12-09 04:21:21 +00:00
Implemented static adapter
This commit is contained in:
5150
package-lock.json
generated
5150
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -19,6 +19,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sveltejs/adapter-auto": "next",
|
"@sveltejs/adapter-auto": "next",
|
||||||
|
"@sveltejs/adapter-static": "^1.0.0-next.29",
|
||||||
"@sveltejs/kit": "next",
|
"@sveltejs/kit": "next",
|
||||||
"@tailwindcss/forms": "^0.5.0",
|
"@tailwindcss/forms": "^0.5.0",
|
||||||
"@testing-library/svelte": "^3.0.3",
|
"@testing-library/svelte": "^3.0.3",
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import adapter from '@sveltejs/adapter-auto';
|
// import adapter from '@sveltejs/adapter-auto';
|
||||||
|
import adapter from '@sveltejs/adapter-static';
|
||||||
import preprocess from 'svelte-preprocess';
|
import preprocess from 'svelte-preprocess';
|
||||||
import { configDefaults } from 'vitest/config'
|
import { configDefaults } from 'vitest/config'
|
||||||
|
|
||||||
@@ -13,7 +14,13 @@ const config = {
|
|||||||
],
|
],
|
||||||
|
|
||||||
kit: {
|
kit: {
|
||||||
adapter: adapter(),
|
adapter: adapter({
|
||||||
|
// default options are shown
|
||||||
|
pages: 'build',
|
||||||
|
assets: 'build',
|
||||||
|
fallback:'index.html', // index.html (SPA) | null (SSR)
|
||||||
|
precompress: false
|
||||||
|
}),
|
||||||
vite: {
|
vite: {
|
||||||
test: {
|
test: {
|
||||||
exclude: [...configDefaults.exclude, './package', './build']
|
exclude: [...configDefaults.exclude, './package', './build']
|
||||||
|
|||||||
Reference in New Issue
Block a user