mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Fix PWA support.
This commit is contained in:
parent
4bfbb9aa2e
commit
179dcbb687
4 changed files with 1990 additions and 388 deletions
|
@ -2,6 +2,7 @@ import { defineConfig } from "vite";
|
|||
import vue from "@vitejs/plugin-vue";
|
||||
import WindiCSS from "vite-plugin-windicss";
|
||||
import vueI18n from "@intlify/vite-plugin-vue-i18n";
|
||||
import { VitePWA } from "vite-plugin-pwa";
|
||||
import path from "path";
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
|
@ -12,6 +13,7 @@ export default defineConfig({
|
|||
vueI18n({
|
||||
include: path.resolve(__dirname, "./src/locales/**"),
|
||||
}),
|
||||
VitePWA({ registerType: "autoUpdate" }),
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue