We're building our own packaging system based on muffin and it's been working out great for us. Love the flexibility of it.
But now, we're trying to pass the watch flag '-w' from the Cakefile to the muffin and while it seems to invoke the watching successfully, nothing happens when a watched fie is modified.
Can you give me a simple example of how to get it work?
I am facing the same issue. Actually, in muffin.js, compileTree() function, a call is made to snockets.getConcatenation() which creates the dep-graph and an cached array (concatCache) of contents for file.
when a watch is applied to muffin, and any file changes, the the dep-graph is checked, and if the dep-graph has not changed then the contents in cached array(concatCache) are used for compiling the tree, which results in no changes to the final output.