Skip to content

wc.addon()

paige edited this page Aug 28, 2023 · 1 revision
  • Description: Similar to compile but usually runs after things are exported out in multi-file setups.
    Look to the Starter Kit for more info on multi-file setups.

Parameters

  • call String: Name used to reference the addon
  • path String: The path for the folder that it adds
  • ?ignore Array: Files that it ignores
  • ?action Function: Action it does for the file (automatically just runs it)

Setup

wc.addon("folder", "src/plugins/folder")

wc.addon("folder", "src/plugins/folder", ["index.js"] )
Clone this wiki locally