mirror of
https://github.com/defnull/fediwall.git
synced 2024-11-22 15:43:31 +01:00
Build fallback bundles for old browsers
This feature adds a lot of dependencies and some build time, but many large screens at venues are powered by outdated android boxes and won't be able to display anything otherwise. Modern browsers are not affected, the fallback bundles are only downloaded by browsers that actually need them.
This commit is contained in:
parent
0987956ecf
commit
7d003382ce
4329
package-lock.json
generated
4329
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -27,6 +27,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tsconfig/node18": "^2.0.1",
|
"@tsconfig/node18": "^2.0.1",
|
||||||
"@types/node": "^18.16.17",
|
"@types/node": "^18.16.17",
|
||||||
|
"@vitejs/plugin-legacy": "^4.1.0",
|
||||||
"@vitejs/plugin-vue": "^4.2.3",
|
"@vitejs/plugin-vue": "^4.2.3",
|
||||||
"@vue/tsconfig": "^0.4.0",
|
"@vue/tsconfig": "^0.4.0",
|
||||||
"git-describe": "^4.1.1",
|
"git-describe": "^4.1.1",
|
||||||
|
@ -4,6 +4,7 @@ import { defineConfig } from 'vite'
|
|||||||
import vue from '@vitejs/plugin-vue'
|
import vue from '@vitejs/plugin-vue'
|
||||||
import viteCompression from 'vite-plugin-compression';
|
import viteCompression from 'vite-plugin-compression';
|
||||||
import { gitDescribeSync } from 'git-describe';
|
import { gitDescribeSync } from 'git-describe';
|
||||||
|
import viteLegacy from '@vitejs/plugin-legacy'
|
||||||
|
|
||||||
var version;
|
var version;
|
||||||
|
|
||||||
@ -23,7 +24,9 @@ export default defineConfig({
|
|||||||
__VERSION__: JSON.stringify(version)
|
__VERSION__: JSON.stringify(version)
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
vue(), viteCompression()
|
vue(),
|
||||||
|
viteCompression(),
|
||||||
|
viteLegacy(),
|
||||||
],
|
],
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
|
Loading…
Reference in New Issue
Block a user