How the 'watch' parameter works
masterThe watch parameter allows a resource file to trigger a rebuild if other files change. This is useful for complex assets like Tiled maps (.tmx) that depend on external textures or tilesets.
When watch is used, the paths listed are relative to the rule's path.
Example: If a rule has path: "Graphics/*.spritegroup" and watch: ["Default/*.png"], Nopipeline will watch Graphics/Default/*.png.
{
"content":
{
"spriteGroup":
{
"path": "Graphics/*.spritegroup",
"recursive": "True",
"action": "build",
"importer": "SpriteGroupImporter",
"processor": "SpriteGroupProcessor",
"watch":
[
"Default/*.png",
"Default/*.json",
]
}
}
}