Skip to content

Commit

Permalink
Use file loader for images
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Jan 8, 2021
1 parent d0af13e commit efaa301
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,8 @@ const config = {
},
{
test: /\.(bmp|png|jpe?g|gif)$/i,
// "url" loader works like "file" loader except that it embeds assets
// smaller than specified limit in bytes as data URLs to avoid requests.
loader: require.resolve( 'url-loader' ),
loader: require.resolve( 'file-loader' ),
options: {
limit: 5000,
name: 'images/[name].[hash:8].[ext]',
},
},
Expand Down

0 comments on commit efaa301

Please sign in to comment.