diff --git a/.gitignore b/.gitignore index a547bf3..0aba815 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,5 @@ dist-ssr *.njsproj *.sln *.sw? + +Dockerfile diff --git a/src/utils/requst.js b/src/utils/requst.js new file mode 100644 index 0000000..e69de29 diff --git a/vite.config.js b/vite.config.js index 5a33944..7abbade 100644 --- a/vite.config.js +++ b/vite.config.js @@ -4,4 +4,12 @@ import react from '@vitejs/plugin-react' // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], + build: { + // 在 outDir 中生成 manifest.json + manifest: true, + // rollupOptions: { + // // 覆盖默认的 .html 入口 + // input: '/path/to/main.js' + // } + } })