Switch adapter from '@sveltejs/adapter-auto' to '@sveltejs/adapter-node' and add SvelteKitPWA plugin to Vite configuration
This commit is contained in:
4922
package-lock.json
generated
4922
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -13,9 +13,11 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sveltejs/adapter-auto": "^6.0.0",
|
||||
"@sveltejs/adapter-node": "^5.2.13",
|
||||
"@sveltejs/kit": "^2.16.0",
|
||||
"@sveltejs/vite-plugin-svelte": "^5.0.0",
|
||||
"@tailwindcss/typography": "^0.5.16",
|
||||
"@vite-pwa/sveltekit": "^1.0.0",
|
||||
"daisyui": "^5.0.43",
|
||||
"prettier": "^3.4.2",
|
||||
"prettier-plugin-svelte": "^3.3.3",
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import adapter from '@sveltejs/adapter-auto';
|
||||
import adapter from '@sveltejs/adapter-node';
|
||||
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
const config = {
|
||||
|
||||
@ -1,7 +1,8 @@
|
||||
import { sveltekit } from '@sveltejs/kit/vite';
|
||||
import { defineConfig } from 'vite';
|
||||
import tailwindcss from '@tailwindcss/vite'
|
||||
import tailwindcss from '@tailwindcss/vite';
|
||||
import { SvelteKitPWA } from '@vite-pwa/sveltekit';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [ tailwindcss(), sveltekit(),]
|
||||
plugins: [tailwindcss(), sveltekit(), SvelteKitPWA()]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user