-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
54 lines (52 loc) · 1.4 KB
/
nuxt.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
43
44
45
46
47
48
49
50
51
52
53
54
import { defineNuxtConfig } from "nuxt/config";
export default defineNuxtConfig({
plugins: [
{ src: "~/plugins/server-only.js", mode: "server" },
{ src: "~/plugins/client-only.js", mode: "client" },
],
pwa: {
workbox: {
globPatterns: ["**/*.{js,css}"],
},
injectManifest: {
globPatterns: ["**/*.{js,css,html,png,svg,ico}"],
},
registerType: "autoUpdate",
manifest: {
name: "My Nuxt PWA App",
short_name: "NuxtPWA",
lang: "en",
display: "standalone",
background_color: "#ffffff",
theme_color: "#000000",
},
},
app: {
head: {
link: [{ rel: "icon", href: "/favicon.ico" }],
title:"go-ws-sh-fe"
},
},
css: [
"~/styles/styles.css",
"~/styles/xterm.css",
"~/node_modules/element-plus/dist/index.css",
"~/node_modules/@xterm/xterm/css/xterm.css",
],
elementPlus: {},
compatibilityDate: "2024-11-01",
devtools: { enabled: true },
modules: ["@element-plus/nuxt", "@vite-pwa/nuxt"],
vite: {
plugins: [],
build: {
minify: "terser",
terserOptions: {
compress: {
drop_console: true,
drop_debugger: true,
},
},
},
},
});