Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/react-scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ module.exports = function (webpackEnv) {
limit: imageInlineSizeLimit,
mimetype: 'image/avif',
name: 'static/media/[name].[hash:8].[ext]',
esModule: false,
},
},
// "url" loader works like "file" loader except that it embeds assets
Expand All @@ -394,6 +395,7 @@ module.exports = function (webpackEnv) {
options: {
limit: imageInlineSizeLimit,
name: 'static/media/[name].[hash:8].[ext]',
esModule: false,
},
},
// Process application JS with Babel.
Expand Down Expand Up @@ -586,6 +588,7 @@ module.exports = function (webpackEnv) {
exclude: [/\.(js|mjs|jsx|ts|tsx)$/, /\.html$/, /\.json$/],
options: {
name: 'static/media/[name].[hash:8].[ext]',
esModule: false,
},
},
// ** STOP ** Are you adding a new loader?
Expand Down