mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 11:11:53 +00:00
[Dev] Allow Vue dev tools to be disabled (#3911)
This commit is contained in:
@@ -25,3 +25,7 @@ ENABLE_MINIFY=true
|
|||||||
# templates are served via the normal method from the server's python site
|
# templates are served via the normal method from the server's python site
|
||||||
# packages.
|
# packages.
|
||||||
DISABLE_TEMPLATES_PROXY=false
|
DISABLE_TEMPLATES_PROXY=false
|
||||||
|
|
||||||
|
# If playwright tests are being run via vite dev server, Vue plugins will
|
||||||
|
# invalidate screenshots. When `true`, vite plugins will not be loaded.
|
||||||
|
DISABLE_VUE_PLUGINS=false
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ const SHOULD_MINIFY = process.env.ENABLE_MINIFY === 'true'
|
|||||||
// vite dev server will listen on all addresses, including LAN and public addresses
|
// vite dev server will listen on all addresses, including LAN and public addresses
|
||||||
const VITE_REMOTE_DEV = process.env.VITE_REMOTE_DEV === 'true'
|
const VITE_REMOTE_DEV = process.env.VITE_REMOTE_DEV === 'true'
|
||||||
const DISABLE_TEMPLATES_PROXY = process.env.DISABLE_TEMPLATES_PROXY === 'true'
|
const DISABLE_TEMPLATES_PROXY = process.env.DISABLE_TEMPLATES_PROXY === 'true'
|
||||||
|
const DISABLE_VUE_PLUGINS = process.env.DISABLE_VUE_PLUGINS === 'true'
|
||||||
|
|
||||||
const DEV_SERVER_COMFYUI_URL =
|
const DEV_SERVER_COMFYUI_URL =
|
||||||
process.env.DEV_SERVER_COMFYUI_URL || 'http://127.0.0.1:8188'
|
process.env.DEV_SERVER_COMFYUI_URL || 'http://127.0.0.1:8188'
|
||||||
@@ -71,9 +72,9 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
vueDevTools(),
|
...(!DISABLE_VUE_PLUGINS
|
||||||
vue(),
|
? [vueDevTools(), vue(), createHtmlPlugin({})]
|
||||||
createHtmlPlugin({}),
|
: [vue()]),
|
||||||
comfyAPIPlugin(IS_DEV),
|
comfyAPIPlugin(IS_DEV),
|
||||||
generateImportMapPlugin([
|
generateImportMapPlugin([
|
||||||
{ name: 'vue', pattern: /[\\/]node_modules[\\/]vue[\\/]/ },
|
{ name: 'vue', pattern: /[\\/]node_modules[\\/]vue[\\/]/ },
|
||||||
|
|||||||
Reference in New Issue
Block a user