Hook webpack 'emit' to allow html to be emitted as an asset