Skip to content

Commit

Permalink
add(*): add deploy static sites
Browse files Browse the repository at this point in the history
  • Loading branch information
姜明辉 committed Jul 9, 2023
1 parent dd831cc commit 801e531
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ dist-ssr
*.njsproj
*.sln
*.sw?

Dockerfile
Empty file added src/utils/requst.js
Empty file.
8 changes: 8 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
// }
}
})

0 comments on commit 801e531

Please sign in to comment.