posthtml / posthtml-loader

PostHTML for Webpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

watch posthtml.config.js

michael-ciniawsky opened this issue · comments

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
})