Have stencil compiler ignore certain files?

1.1k Views Asked by At

A plugin is generating *.json files during the build and when I'm using the watch flag, it keep re-triggering the build forever.

Is there a way to tell Stencil to ignore certain filetypes on watch?

1

There are 1 best solutions below

0
On BEST ANSWER

After upgrading to 2.0.3, I was able to add the following to the stencil config and it worked: watchIgnoredRegex: /\.*\.json$/