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:
Marcel Hellkamp 2023-07-20 16:29:41 +02:00
parent 0987956ecf
commit 7d003382ce
3 changed files with 3939 additions and 396 deletions

4329
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -27,6 +27,7 @@
"devDependencies": {
"@tsconfig/node18": "^2.0.1",
"@types/node": "^18.16.17",
"@vitejs/plugin-legacy": "^4.1.0",
"@vitejs/plugin-vue": "^4.2.3",
"@vue/tsconfig": "^0.4.0",
"git-describe": "^4.1.1",

View File

@ -4,6 +4,7 @@ import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import viteCompression from 'vite-plugin-compression';
import { gitDescribeSync } from 'git-describe';
import viteLegacy from '@vitejs/plugin-legacy'
var version;
@ -23,7 +24,9 @@ export default defineConfig({
__VERSION__: JSON.stringify(version)
},
plugins: [
vue(), viteCompression()
vue(),
viteCompression(),
viteLegacy(),
],
resolve: {
alias: {