From 5444f0c85203a4990d1351fc91b38b0d75643471 Mon Sep 17 00:00:00 2001 From: Tusooa Zhu Date: Mon, 15 Aug 2022 18:42:21 -0400 Subject: [PATCH] Fix double dot in generated asset names --- build/webpack.base.conf.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index fbbf18df04..78b75e3f26 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -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]') } }, {