我的目标是替换一个字符串
<!--configjs-->
和
<script src="/api/config?bundle-hash"></script>
在我的 index.html 文件中
我正在使用https://github.com/AngularClass/NG6-starter
plugins: [
// Injects bundles in your index.html instead of wiring all manually.
// It also adds hash to all injected assets so we don't have problems
// with cache purging during deployment.
new HtmlWebpackPlugin({
template: 'client/index.html',
inject: 'body',
hash: true
})
]