alternative for html-webpack-plugin
support webpack4 take a break change, this is a backup for webpack1~3
see 给 HTML 标签注入属性
reserve custom attrs, e.g: In html template:
<script async data-group="123" src="./main.js"></script>
In output html, attrs async data-group="123"
will keep.
templateCompiler
option use to pre-translate you origin template use template engine like ejs.
detail use see this demo.
templateCompiler has been add to WebPlugin and AutoWebPlugin both.