html-minifier currently seems to leave `<script type="module">` contents intact. It could be that #1046 is sufficient to resolve this.