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",
|
"version": "0.0.55",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "VITE_OPEN=${VITE_OPEN:-false} vite",
|
||||||
"build": "tsc && vite build",
|
"build": "tsc && vite build",
|
||||||
"check": "tsc --noEmit",
|
"check": "tsc --noEmit",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ export default defineConfig({
|
|||||||
fs: {
|
fs: {
|
||||||
allow: [path.resolve(__dirname, "."), path.resolve(__dirname, "..")],
|
allow: [path.resolve(__dirname, "."), path.resolve(__dirname, "..")],
|
||||||
},
|
},
|
||||||
|
open: process.env.VITE_OPEN === "true",
|
||||||
},
|
},
|
||||||
build: { sourcemap: true },
|
build: { sourcemap: true },
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user