Integrating the Nuxt framework into Wails

This commit is contained in:
zyj
2025-09-04 10:23:20 +08:00
commit 33e8a40ba1
39 changed files with 13653 additions and 0 deletions

17
frontend/nuxt.config.ts Normal file
View File

@@ -0,0 +1,17 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
ssr: false,
compatibilityDate: "2025-07-15",
devtools: { enabled: true },
css: ["./app/style.css"],
nitro: {
output: {
// 修改 Nitro 的缓存目录(默认为 .output
dir: "dist",
// 修改最终静态资源输出目录(默认为 dist
publicDir: "dist/public",
// 修改服务端构建输出目录(可选)
serverDir: "dist/server",
},
},
});