webpack配置new HtmlWebpackPlugin({ inject: true, minify: { ignoreCustomFragments: [ /\${[a-zA-Z]*?}/], }, template: paths.appHtml }),html<script> var a="${a}"; var b="${b}";</script>报错Template execution failed: ReferenceError: a is not defined请问要怎么配置才能够让插件忽略${}
添加回答
举报
0/150
提交
取消