From 801e531b44032ffba2b0d8b1ba225ded3fd4ceba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E6=98=8E=E8=BE=89?= Date: Sun, 9 Jul 2023 12:07:04 +0800 Subject: [PATCH] add(*): add deploy static sites --- .gitignore | 2 ++ src/utils/requst.js | 0 vite.config.js | 8 ++++++++ 3 files changed, 10 insertions(+) create mode 100644 src/utils/requst.js 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' + // } + } })