Skip to content

Commit

Permalink
fix: file-loader should ignore empty filename '' (closes #458)
Browse files Browse the repository at this point in the history
  • Loading branch information
mman committed Nov 8, 2024
1 parent ffac5fc commit e8b5208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ module.exports = function (webpackEnv) {
// its runtime that would otherwise be processed through "file" loader.
// Also exclude `html` and `json` extensions so they get processed
// by webpacks internal loaders.
exclude: [/\.(js|mjs|jsx|ts|tsx)$/, /\.html$/, /\.json$/],
exclude: [/\.(js|cjs|mjs|jsx|ts|tsx)$/, /\.html$/, /\.json$/, /^$/],
options: {
name: "static/media/[name].[hash:8].[ext]",
},
Expand Down

0 comments on commit e8b5208

Please sign in to comment.