Added static adapter
This commit is contained in:
parent
44c77a8aad
commit
8857b05860
15
package.json
15
package.json
@ -10,18 +10,21 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sveltejs/kit": "next",
|
"@sveltejs/kit": "next",
|
||||||
|
"autoprefixer": "^10.3.1",
|
||||||
|
"cssnano": "^5.0.6",
|
||||||
"eslint": "^7.22.0",
|
"eslint": "^7.22.0",
|
||||||
"eslint-config-prettier": "^8.1.0",
|
"eslint-config-prettier": "^8.1.0",
|
||||||
"eslint-plugin-svelte3": "^3.2.0",
|
"eslint-plugin-svelte3": "^3.2.0",
|
||||||
|
"postcss": "^8.3.5",
|
||||||
|
"postcss-load-config": "^3.1.0",
|
||||||
"prettier": "~2.2.1",
|
"prettier": "~2.2.1",
|
||||||
"prettier-plugin-svelte": "^2.2.0",
|
"prettier-plugin-svelte": "^2.2.0",
|
||||||
"svelte": "^3.34.0",
|
"svelte": "^3.34.0",
|
||||||
"postcss": "^8.3.5",
|
|
||||||
"postcss-load-config": "^3.1.0",
|
|
||||||
"svelte-preprocess": "^4.7.4",
|
"svelte-preprocess": "^4.7.4",
|
||||||
"autoprefixer": "^10.3.1",
|
|
||||||
"cssnano": "^5.0.6",
|
|
||||||
"tailwindcss": "^2.2.4"
|
"tailwindcss": "^2.2.4"
|
||||||
},
|
},
|
||||||
"type": "module"
|
"type": "module",
|
||||||
}
|
"dependencies": {
|
||||||
|
"@sveltejs/adapter-static": "^1.0.0-next.16"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -1,9 +1,15 @@
|
|||||||
import preprocess from "svelte-preprocess";
|
import preprocess from "svelte-preprocess";
|
||||||
|
import staticAdapter from '@sveltejs/adapter-static';
|
||||||
|
|
||||||
/** @type {import('@sveltejs/kit').Config} */
|
/** @type {import('@sveltejs/kit').Config} */
|
||||||
const config = {
|
const config = {
|
||||||
kit: {
|
kit: {
|
||||||
// hydrate the <div id="svelte"> element in src/app.html
|
// hydrate the <div id="svelte"> element in src/app.html
|
||||||
target: '#svelte'
|
target: '#svelte',
|
||||||
|
adapter: staticAdapter(),
|
||||||
|
files: {
|
||||||
|
assets: 'static'
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
preprocess: [preprocess({
|
preprocess: [preprocess({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user