Added vitejs as a launcher for index.html. package.json 'prepare' command is used to create the index.html file to be used with vite

This commit is contained in:
Thierry Parlier 2024-02-06 12:16:17 +04:00
parent 40ddfcab77
commit acc6555ded
11 changed files with 5007 additions and 4 deletions

16
vite.config.js Normal file
View file

@ -0,0 +1,16 @@
import { defineConfig } from 'vite';
export default defineConfig(({ command, mode, isSsrBuild, isPreview }) => {
if (command === 'serve') {
return {
// dev specific config
}
} else {
// command === 'build'
return {
// build specific config
}
}
})