posthtml / posthtml-extend

Template extending (Jade-like)
MIT License
47 stars 9 forks source link

webpack live reload when base file changes #11

Closed andreyvolokitin closed 6 years ago

andreyvolokitin commented 6 years ago

There is no recompiling and no live reload of a page when base file contents changes

andreyvolokitin commented 6 years ago

I got this working. Is it really as simple as adding the following before this line?

tree.messages.push({
          type: 'dependency',
          file: layoutPath,
          from: tree.options.from
        });

(for details see posthtml api and posthtml-loader usage of it).

But again, it stops working (no recompile) if I also have posthtml-beautify declared in my posthtml.config.js (cc @michael-ciniawsky)

Scrum commented 6 years ago

@andreyvolokitin close ?