提问人:aryan 提问时间:10/30/2023 更新时间:10/30/2023 访问量:25
Webpack:html文件名中的正则表达式?
Webpack: Regex in html filename?
问:
我在 url 中的文件名是这样的:
index.qwe123.html
其中 qwe123 是随机字符串。我想显示索引.html文件,而不考虑这个字符串。如何在 Webpack 配置中自定义:
new HtmlWebpackPlugin({
filename: 'index.html',
template: path.resolve(__dirname, SOURCE_ROOT + '/static/index.html')
})
因此,无论动态部分如何,都会提供此索引.html。
答: 暂无答案
评论