web-webpack-plugin icon indicating copy to clipboard operation
web-webpack-plugin copied to clipboard

改动引起template配置失效

Open HexMox opened this issue 7 years ago • 2 comments

https://github.com/gwuhaolin/web-webpack-plugin/blob/0b55258551234c917fa46e689b129844d65ac36d/lib/AutoWebPlugin.js#L167

这里...otherOptions的写法,导致plugin配置中的template属性和WebPlugin中buildHtmlDocument方法中判断的options.template属性冲突,引起覆盖

HexMox avatar Jan 12 '19 09:01 HexMox

我demo里的那些测试用例都跑通过了,你可以举个有问题的例子么?

gwuhaolin avatar Jan 12 '19 11:01 gwuhaolin

/demo/auto-plugin-use-template/dist/signup.html

https://github.com/gwuhaolin/web-webpack-plugin/pull/38/commits/fddeb9105bd727df873a89df6cd80be1ebb286cd

可以看到生成的html已经不是对应的src/template.html模版的内容了。用了默认的模版

HexMox avatar Jan 23 '19 08:01 HexMox