Skip to content

Commit

Permalink
feat(webapp): add legacy build for older browser
Browse files Browse the repository at this point in the history
  • Loading branch information
Rotzbua committed Aug 2, 2023
1 parent a58708e commit a008b59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions www/webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"vuetify": "^2.7.0"
},
"devDependencies": {
"@vitejs/plugin-legacy": "^4.1.1",
"@vitejs/plugin-vue2": "^2.2.0",
"eslint": "^8.45.0",
"eslint-import-resolver-alias": "^1.1.2",
Expand Down
2 changes: 2 additions & 0 deletions www/webapp/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {defineConfig} from 'vite'
import {resolve} from 'node:path';
import Components from 'unplugin-vue-components/vite'
import {VuetifyResolver} from 'unplugin-vue-components/resolvers'
import legacy from '@vitejs/plugin-legacy'
import vue from '@vitejs/plugin-vue2'

export default defineConfig({
Expand All @@ -14,6 +15,7 @@ export default defineConfig({
Components({
resolvers: [VuetifyResolver()],
}),
legacy(), // Build for old browser.
],
server: {
port: 8080,
Expand Down

0 comments on commit a008b59

Please sign in to comment.