Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
4a7e751c
"vscode:/vscode.git/clone" did not exist on "b10f12a292f312d0d5199ecd61d3ba783aaadb2e"
Commit
4a7e751c
authored
Feb 25, 2024
by
comfyanonymous
Browse files
Add example for how to use WEB_DIRECTORY to add frontend extensions.
parent
c2cb8e88
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
custom_nodes/example_node.py.example
custom_nodes/example_node.py.example
+3
-0
No files found.
custom_nodes/example_node.py.example
View file @
4a7e751c
...
...
@@ -103,6 +103,9 @@ class Example:
#def IS_CHANGED(s, image, string_field, int_field, float_field, print_to_screen):
# return ""
# Set the web directory, any .js file in that directory will be loaded by the frontend as a frontend extension
# WEB_DIRECTORY = "./somejs"
# A dictionary that contains all nodes you want to export with their names
# NOTE: names should be globally unique
NODE_CLASS_MAPPINGS = {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment