Support for legacy browsers (#228)
This commit is contained in:
1 parent
4c90cf1e98
commit
6e4262e6a5
3 files changed
+2172
-16
No files matched your search
Generated
+2162
-15
File diff suppressed because it is too large.
Load diff
@@ -12,6 +12,7 @@
|
|||||||
"@sveltejs/vite-plugin-svelte": "^3.0.1",
|
"@sveltejs/vite-plugin-svelte": "^3.0.1",
|
||||||
"@tailwindcss/typography": "^0.5.10",
|
"@tailwindcss/typography": "^0.5.10",
|
||||||
"@tsconfig/svelte": "^5.0.2",
|
"@tsconfig/svelte": "^5.0.2",
|
||||||
|
"@vitejs/plugin-legacy": "^5.2.0",
|
||||||
"autoprefixer": "^10.4.16",
|
"autoprefixer": "^10.4.16",
|
||||||
"daisyui": "^4.4.20",
|
"daisyui": "^4.4.20",
|
||||||
"dotenv": "^16.3.1",
|
"dotenv": "^16.3.1",
|
||||||
@@ -21,6 +22,7 @@
|
|||||||
"svelte-check": "^3.6.2",
|
"svelte-check": "^3.6.2",
|
||||||
"svelte-preprocess": "^5.1.2",
|
"svelte-preprocess": "^5.1.2",
|
||||||
"tailwindcss": "^3.3.6",
|
"tailwindcss": "^3.3.6",
|
||||||
|
"terser": "^5.26.0",
|
||||||
"tslib": "^2.6.2",
|
"tslib": "^2.6.2",
|
||||||
"typescript": "^5.3.3",
|
"typescript": "^5.3.3",
|
||||||
"vite": "^5.0.10",
|
"vite": "^5.0.10",
|
||||||
|
|||||||
@@ -5,11 +5,18 @@ import ip from 'ip';
|
|||||||
import { existsSync, readFileSync } from 'fs'
|
import { existsSync, readFileSync } from 'fs'
|
||||||
import { join as joinPath } from 'path'
|
import { join as joinPath } from 'path'
|
||||||
import { parse as dotEnvParse } from 'dotenv'
|
import { parse as dotEnvParse } from 'dotenv'
|
||||||
|
import legacy from '@vitejs/plugin-legacy'
|
||||||
|
|
||||||
const PORT = 5173
|
const PORT = 5173
|
||||||
|
|
||||||
const config: UserConfig = {
|
const config: UserConfig = {
|
||||||
plugins: [tsconfigPaths(), svelte()],
|
plugins: [
|
||||||
|
tsconfigPaths(),
|
||||||
|
svelte(),
|
||||||
|
legacy({
|
||||||
|
targets: ['defaults', 'not IE 11'],
|
||||||
|
})
|
||||||
|
],
|
||||||
build: {
|
build: {
|
||||||
outDir: "../playlet-lib/src/www",
|
outDir: "../playlet-lib/src/www",
|
||||||
emptyOutDir: true
|
emptyOutDir: true
|
||||||
|
|||||||
Reference in new issue
Block a user