webpack live reload when include changes
andreyvolokitin opened this issue · comments
I am not sure where to go with this issue. When I change contents of included file (using posthtml-include
) I get no recompiling and no live page reload. I suspect it may be "normal" for such use cases, i.e. with usage of includes/extends in template engines within webpack ecosystem (for example pugjs/pug-loader#75). Can you give any hints where to start?
See posthtml/posthtml-include#16 which adds this functionality to the plugin :) the loader already supports it since >= v1.0.0
. If you like try it out npm/yarn install michael-ciniawsky/posthtml-include
any feedback appreciated.
Works, but if used in conjunction with posthtml-beautify
there is no recompiling (and no visible errors) after changes in included file
@andreyvolokitin Hi, show me your example where you use posthtml-beautify
Will do later, but it is pretty much any use case of posthtml-beautify
in conjunction with some other plugin which uses tree.messages
posthtml API (i.e. michael-ciniawsky/posthtml-include
), see: posthtml/posthtml-beautify#211
@andreyvolokitin close this issue ?
Probably yes, hope this gets merged soon posthtml/posthtml-include#16