This commit is contained in:
EthanShoeDev
2025-10-04 21:03:01 -04:00
parent 65a5249c8f
commit 8b38104373
7 changed files with 286 additions and 104 deletions

View File

@@ -2,9 +2,13 @@ import { defineConfig } from 'vite';
import { viteSingleFile } from 'vite-plugin-singlefile';
// https://vite.dev/config/
export default defineConfig({
plugins: [viteSingleFile()],
build: {
outDir: 'dist-internal',
},
export default defineConfig((ctx) => {
const input = ctx.command === 'serve' ? 'index.html' : 'index.build.html';
console.log('Vite Internal Working with input', input);
return {
plugins: [viteSingleFile()],
build: {
outDir: 'dist-internal',
},
};
});