open the frontend by default when running the dev command (#717)
* open the frontend by default when running the dev command * change the VITE_OPEN default to false
This commit is contained in:
committed by
GitHub
parent
73bc23968d
commit
c44edf33cb
@@ -4,7 +4,7 @@
|
||||
"version": "0.0.55",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"dev": "VITE_OPEN=${VITE_OPEN:-false} vite",
|
||||
"build": "tsc && vite build",
|
||||
"check": "tsc --noEmit",
|
||||
"preview": "vite preview",
|
||||
|
||||
@@ -73,6 +73,7 @@ export default defineConfig({
|
||||
fs: {
|
||||
allow: [path.resolve(__dirname, "."), path.resolve(__dirname, "..")],
|
||||
},
|
||||
open: process.env.VITE_OPEN === "true",
|
||||
},
|
||||
build: { sourcemap: true },
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user