bmatcuk / brunch-static

Transform static files using brunch.
MIT License
10 stars 2 forks source link

Switching to "template" plug-in type. #2

Closed 32bitkid closed 8 years ago

32bitkid commented 8 years ago

Using the "stylesheet" brunch plug-in type, does not emit junk into compiled javascript, however, it does cause down-stream onCompile() hooks like auto-reload-brunch to think that the CSS has changed, and not the page itself. Which will require a manual refresh...

It appears that the "template" type has been resolved in brunch so that it no longer emits the wrapper if the returned result is empty. It also has a side-effect of triggering the proper down stream changes for onCompile().

bmatcuk commented 8 years ago

Confirmed. Newer versions of brunch won't output anything for template... nice! This feels a little less hacky. Thanks!