Webpack: Regex in html filename?

46 Views Asked by At

My filename in url is something like:

index.qwe123.html

Where qwe123 is a random string. I want to display index.html file regardless this string. How do I customize in Webpack config:

new HtmlWebpackPlugin({
            filename: 'index.html',
            template: path.resolve(__dirname, SOURCE_ROOT + '/static/index.html')
        })

So, this index.html would be served regardless of the dynamic part.

0

There are 0 best solutions below