web-webpack-plugin
web-webpack-plugin copied to clipboard
改动引起template配置失效
https://github.com/gwuhaolin/web-webpack-plugin/blob/0b55258551234c917fa46e689b129844d65ac36d/lib/AutoWebPlugin.js#L167
这里...otherOptions的写法,导致plugin配置中的template属性和WebPlugin中buildHtmlDocument方法中判断的options.template属性冲突,引起覆盖
我demo里的那些测试用例都跑通过了,你可以举个有问题的例子么?
/demo/auto-plugin-use-template/dist/signup.html
https://github.com/gwuhaolin/web-webpack-plugin/pull/38/commits/fddeb9105bd727df873a89df6cd80be1ebb286cd
可以看到生成的html已经不是对应的src/template.html模版的内容了。用了默认的模版