"test/git@developer.sourcefind.cn:change/sglang.git" did not exist on "88596739a4637ad10a98d09473e71cee8064b9ec"
Commit 4a7e751c authored by comfyanonymous's avatar comfyanonymous
Browse files

Add example for how to use WEB_DIRECTORY to add frontend extensions.

parent c2cb8e88
......@@ -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 = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment