Skip to content

Commit 360aaea

Browse files
committed
Add support for .bmp format images to webpack loader. Fixes facebook#1033.
1 parent 79160b8 commit 360aaea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-scripts/config/webpack.config.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ module.exports = {
145145
// When you `import` an asset, you get its (virtual) filename.
146146
// In production, they would get copied to the `build` folder.
147147
{
148-
test: /\.(ico|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2)(\?.*)?$/,
148+
test: /\.(ico|jpg|jpeg|png|gif|bmp|eot|otf|webp|svg|ttf|woff|woff2)(\?.*)?$/,
149149
loader: 'file',
150150
query: {
151151
name: 'static/media/[name].[hash:8].[ext]'

packages/react-scripts/config/webpack.config.prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ module.exports = {
162162
// "file" loader makes sure those assets end up in the `build` folder.
163163
// When you `import` an asset, you get its filename.
164164
{
165-
test: /\.(ico|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2)(\?.*)?$/,
165+
test: /\.(ico|jpg|jpeg|png|gif|bmp|eot|otf|webp|svg|ttf|woff|woff2)(\?.*)?$/,
166166
loader: 'file',
167167
query: {
168168
name: 'static/media/[name].[hash:8].[ext]'

0 commit comments

Comments
 (0)