Fix double dot in generated asset names

This commit is contained in:
Tusooa Zhu 2022-08-15 18:42:21 -04:00
parent 234963caa1
commit 5444f0c852
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224

View file

@ -84,14 +84,14 @@ module.exports = {
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
type: 'asset',
generator: {
filename: utils.assetsPath('img/[name].[hash:7].[ext]')
filename: utils.assetsPath('img/[name].[hash:7][ext]')
}
},
{
test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
type: 'asset',
generator: {
filename: utils.assetsPath('fonts/[name].[hash:7].[ext]')
filename: utils.assetsPath('fonts/[name].[hash:7][ext]')
}
},
{