mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-04 10:04:59 +02:00
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:
parent
40ddfcab77
commit
acc6555ded
11 changed files with 5007 additions and 4 deletions
16
vite.config.js
Normal file
16
vite.config.js
Normal 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
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue