Skip to content

Commit

Permalink
Make multiple extensions regex shorter and easy to change (#191)
Browse files Browse the repository at this point in the history
* Make multiple extensions regex shorter and easy to change
  • Loading branch information
james4388 authored and somus committed Jul 8, 2016
1 parent 86434c8 commit 4002587
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ module.exports = {
exclude: [/node_modules/, /.+\.config.js/],
loader: 'babel',
}, {
test: /\.jpe?g$|\.gif$|\.png$|\.svg$/i,
test: /\.(jpe?g|gif|png|svg)$/i,
loader: 'url-loader?limit=10000',
}, {
test: /\.json$/,
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module.exports = {
exclude: /node_modules/,
loader: 'babel',
}, {
test: /\.jpe?g$|\.gif$|\.png$|\.svg$/i,
test: /\.(jpe?g|gif|png|svg)$/i,
loader: 'url-loader?limit=10000',
}, {
test: /\.json$/,
Expand Down

0 comments on commit 4002587

Please sign in to comment.