mirror of
https://github.com/EthanShoeDev/fressh.git
synced 2026-01-11 06:12:51 +00:00
15 lines
388 B
TypeScript
15 lines
388 B
TypeScript
import { defineConfig } from 'vite';
|
|
import { viteSingleFile } from 'vite-plugin-singlefile';
|
|
|
|
// https://vite.dev/config/
|
|
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',
|
|
},
|
|
};
|
|
});
|