-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvite.config.ts
42 lines (40 loc) · 1.08 KB
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import { fileURLToPath, URL } from "url";
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import { viteStaticCopy } from "vite-plugin-static-copy";
import { VitePWA } from 'vite-plugin-pwa'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
VitePWA({
registerType: 'autoUpdate',
manifest: {
name: "Tsubasa 🦋",
short_name: "Tsubasa",
description: "Tsubasa is a fast video compression service that runs locally on your device. Maintain the best quality while staying under MB file limits.",
background_color: "#6366f1",
theme_color: "#6366f1",
},
}),
viteStaticCopy({
targets: [
{
src: "./node_modules/mediainfo.js/dist/MediaInfoModule.wasm",
dest: ".",
},
],
}),
],
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
server: {
headers: {
"Cross-Origin-Embedder-Policy": "require-corp",
"Cross-Origin-Opener-Policy": "same-origin",
},
},
});