Fix webpack assets using wrong name (#1391)
This commit is contained in:
parent
41d3bd8cf2
commit
dfd62c7c3a
|
@ -31,7 +31,7 @@ const moduleRules = [
|
|||
test: /.(ttf|otf|eot|svg|woff(2)?)(\?[a-z0-9]+)?$/,
|
||||
exclude: /loading(|-white).svg/,
|
||||
generator: {
|
||||
filename: "fonts/[name].[ext]",
|
||||
filename: "fonts/[name][ext]",
|
||||
},
|
||||
type: "asset/resource",
|
||||
},
|
||||
|
@ -39,7 +39,7 @@ const moduleRules = [
|
|||
test: /\.(jpe?g|png|gif|svg|webp|avif)$/i,
|
||||
exclude: /.*(fontawesome-webfont)\.svg/,
|
||||
generator: {
|
||||
filename: "images/[name].[ext]",
|
||||
filename: "images/[name][ext]",
|
||||
},
|
||||
type: "asset/resource",
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue