⬆️ Updated Svelte and config files to use Vite
This commit is contained in:
+22
-21
@@ -2,10 +2,10 @@
|
||||
"name": "frontend",
|
||||
"version": "0.0.1",
|
||||
"scripts": {
|
||||
"dev": "svelte-kit dev",
|
||||
"build": "NODE_ENV=production svelte-kit build",
|
||||
"dev": "vite dev",
|
||||
"build": "NODE_ENV=production vite build",
|
||||
"package": "svelte-kit package",
|
||||
"preview": "svelte-kit preview",
|
||||
"preview": "vite preview",
|
||||
"check": "svelte-check --tsconfig ./tsconfig.json",
|
||||
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
|
||||
"lint": "prettier --ignore-path .gitignore --check --plugin-search-dir=. . '!src/lib/i18n/locales/*.json' && eslint --ignore-path .gitignore .",
|
||||
@@ -18,19 +18,19 @@
|
||||
"@felte/reporter-tippy": "^1.1.2",
|
||||
"@felte/validator-yup": "^1.0.8",
|
||||
"@fontsource/marck-script": "^4.5.9",
|
||||
"@sentry/browser": "^7.1.1",
|
||||
"@sentry/tracing": "^7.1.1",
|
||||
"@sentry/browser": "^7.5.1",
|
||||
"@sentry/tracing": "^7.5.1",
|
||||
"@sveltejs/adapter-auto": "next",
|
||||
"@sveltejs/adapter-node": "^1.0.0-next.78",
|
||||
"@sveltejs/adapter-node": "^1.0.0-next.79",
|
||||
"@sveltejs/kit": "next",
|
||||
"@tailwindcss/typography": "^0.5.2",
|
||||
"@tailwindcss/typography": "^0.5.3",
|
||||
"@types/cookie": "^0.5.1",
|
||||
"@types/js-cookie": "^3.0.2",
|
||||
"@types/luxon": "^2.3.2",
|
||||
"@types/ua-parser-js": "^0.7.36",
|
||||
"@types/yup": "^0.29.14",
|
||||
"@typescript-eslint/eslint-plugin": "^5.27.1",
|
||||
"@typescript-eslint/parser": "^5.27.1",
|
||||
"@typescript-eslint/eslint-plugin": "^5.30.5",
|
||||
"@typescript-eslint/parser": "^5.30.5",
|
||||
"@uppy/compressor": "^0.3.0",
|
||||
"@uppy/core": "^2.3.1",
|
||||
"@uppy/dashboard": "^2.3.0",
|
||||
@@ -41,39 +41,40 @@
|
||||
"autoprefixer": "^10.4.7",
|
||||
"cookie": "^0.5.0",
|
||||
"crypto-js": "^4.1.1",
|
||||
"cssnano": "^5.1.11",
|
||||
"eslint": "^8.17.0",
|
||||
"cssnano": "^5.1.12",
|
||||
"eslint": "^8.19.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-svelte3": "^4.0.0",
|
||||
"felte": "^1.2.2",
|
||||
"highlight.js": "^11.5.1",
|
||||
"i18next-browser-languagedetector": "^6.1.4",
|
||||
"ioredis": "^5.0.6",
|
||||
"ioredis": "^5.1.0",
|
||||
"js-cookie": "^3.0.1",
|
||||
"luxon": "^2.4.0",
|
||||
"mapbox-gl": "^2.8.2",
|
||||
"mapbox-gl": "^2.9.1",
|
||||
"plausible-tracker": "^0.3.8",
|
||||
"postcss": "^8.4.14",
|
||||
"postcss-load-config": "^4.0.1",
|
||||
"prettier": "^2.6.2",
|
||||
"prettier": "^2.7.1",
|
||||
"prettier-plugin-svelte": "^2.7.0",
|
||||
"sass": "^1.52.3",
|
||||
"sass": "^1.53.0",
|
||||
"socket.io-client": "^4.5.1",
|
||||
"svelte": "^3.48.0",
|
||||
"svelte-check": "^2.7.2",
|
||||
"svelte": "^3.49.0",
|
||||
"svelte-check": "^2.8.0",
|
||||
"svelte-preprocess": "^4.10.7",
|
||||
"svelte-tippy": "^1.3.2",
|
||||
"swiper": "^8.2.3",
|
||||
"tailwindcss": "^3.1.2",
|
||||
"swiper": "^8.3.0",
|
||||
"tailwindcss": "^3.1.5",
|
||||
"tippy.js": "^6.3.7",
|
||||
"tslib": "^2.4.0",
|
||||
"typescript": "~4.7.3",
|
||||
"typescript": "~4.7.4",
|
||||
"ua-parser-js": "^1.0.2",
|
||||
"vite": "^2.9.14",
|
||||
"vite-plugin-iso-import": "^0.1.3",
|
||||
"yup": "^0.32.11"
|
||||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"i18next": "^21.8.9"
|
||||
"i18next": "^21.8.13"
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+392
-816
File diff suppressed because it is too large
Load Diff
@@ -22,16 +22,7 @@ const config = {
|
||||
adapter: adapter({
|
||||
out: 'build',
|
||||
precompress: true
|
||||
}),
|
||||
vite: {
|
||||
optimizeDeps: {
|
||||
include: ['swiper']
|
||||
},
|
||||
build: {
|
||||
sourcemap: true
|
||||
},
|
||||
plugins: [isoImport()]
|
||||
}
|
||||
})
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
import { sveltekit } from '@sveltejs/kit/vite';
|
||||
import { isoImport } from 'vite-plugin-iso-import';
|
||||
|
||||
/** @type {import('vite').UserConfig} */
|
||||
const config = {
|
||||
plugins: [sveltekit(), isoImport()],
|
||||
optimizeDeps: {
|
||||
include: ['swiper']
|
||||
},
|
||||
build: {
|
||||
sourcemap: true
|
||||
}
|
||||
};
|
||||
|
||||
export default config;
|
||||
Reference in New Issue
Block a user