| 1 | import { defineConfig } from "vite"; |
| 2 | |
| 3 | export default defineConfig({ |
| 4 | plugins: [ |
| 5 | { |
| 6 | name: "report-process-cwd", |
| 7 | transformIndexHtml(html) { |
| 8 | return html.replace( |
| 9 | "</head>", |
| 10 | `<meta name="vite-process-cwd" content="${process.cwd()}"></head>`, |
| 11 | ); |
| 12 | }, |
| 13 | }, |
| 14 | ], |
| 15 | }); |