File tree 2 files changed +8
-3
lines changed 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -25,3 +25,7 @@ ENABLE_MINIFY=true
25
25
# templates are served via the normal method from the server's python site
26
26
# packages.
27
27
DISABLE_TEMPLATES_PROXY=false
28
+
29
+ # If playwright tests are being run via vite dev server, Vue plugins will
30
+ # invalidate screenshots. When `true`, vite plugins will not be loaded.
31
+ DISABLE_VUE_PLUGINS=false
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ const SHOULD_MINIFY = process.env.ENABLE_MINIFY === 'true'
21
21
// vite dev server will listen on all addresses, including LAN and public addresses
22
22
const VITE_REMOTE_DEV = process . env . VITE_REMOTE_DEV === 'true'
23
23
const DISABLE_TEMPLATES_PROXY = process . env . DISABLE_TEMPLATES_PROXY === 'true'
24
+ const DISABLE_VUE_PLUGINS = process . env . DISABLE_VUE_PLUGINS === 'true'
24
25
25
26
const DEV_SERVER_COMFYUI_URL =
26
27
process . env . DEV_SERVER_COMFYUI_URL || 'http://127.0.0.1:8188'
@@ -71,9 +72,9 @@ export default defineConfig({
71
72
} ,
72
73
73
74
plugins : [
74
- vueDevTools ( ) ,
75
- vue ( ) ,
76
- createHtmlPlugin ( { } ) ,
75
+ ... ( ! DISABLE_VUE_PLUGINS
76
+ ? [ vueDevTools ( ) , vue ( ) , createHtmlPlugin ( { } ) ]
77
+ : [ vue ( ) ] ) ,
77
78
comfyAPIPlugin ( IS_DEV ) ,
78
79
generateImportMapPlugin ( [
79
80
{ name : 'vue' , pattern : / [ \\ / ] n o d e _ m o d u l e s [ \\ / ] v u e [ \\ / ] / } ,
You can’t perform that action at this time.
0 commit comments