watch posthtml.config.js
michael-ciniawsky opened this issue · comments
Michael Ciniawsky commented
Watch the config file and trigger rebuild (hotreload) when changed
posthtmlrc(ctx, ctx.dir).then((config) => {
loader.addDependencyTo(config.file)
delete require.cache(config.file)
return config
})