Skip to content

Commit

Permalink
Make webpack loaders case sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
richardscarrott committed Mar 27, 2017
1 parent d7955ea commit 7db4db2
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
16 changes: 8 additions & 8 deletions tasks/build/__snapshots__/webpackConfig.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -92,31 +92,31 @@ Object {
"options": Object {
"limit": 10000,
},
"test": /\\\\\\.\\(eot\\|ttf\\|woff\\|woff2\\)\\(\\\\\\?\\.\\*\\)\\?\\$/i,
"test": /\\\\\\.\\(eot\\|ttf\\|woff\\|woff2\\)\\(\\\\\\?\\.\\*\\)\\?\\$/,
},
Object {
"include": "<rootDir>/src",
"loader": "url-loader",
"options": Object {
"limit": 10000,
},
"test": /\\\\\\.\\(gif\\|ico\\|jpg\\|jpeg\\|png\\|svg\\|webp\\)\\$/i,
"test": /\\\\\\.\\(gif\\|ico\\|jpg\\|jpeg\\|png\\|svg\\|webp\\)\\$/,
},
Object {
"include": "<rootDir>/src",
"loader": "url-loader",
"options": Object {
"limit": 10000,
},
"test": /\\\\\\.\\(mp4\\|webm\\)\\$/i,
"test": /\\\\\\.\\(mp4\\|webm\\)\\$/,
},
Object {
"include": "<rootDir>/src",
"loader": "url-loader",
"options": Object {
"limit": 10000,
},
"test": /\\\\\\.\\(aac\\|m4a\\|mp3\\|oga\\|ogg\\|wav\\)\\$/i,
"test": /\\\\\\.\\(aac\\|m4a\\|mp3\\|oga\\|ogg\\|wav\\)\\$/,
},
],
},
Expand Down Expand Up @@ -217,31 +217,31 @@ Object {
"options": Object {
"limit": 10000,
},
"test": /\\\\\\.\\(eot\\|ttf\\|woff\\|woff2\\)\\(\\\\\\?\\.\\*\\)\\?\\$/i,
"test": /\\\\\\.\\(eot\\|ttf\\|woff\\|woff2\\)\\(\\\\\\?\\.\\*\\)\\?\\$/,
},
Object {
"include": "<rootDir>/src",
"loader": "url-loader",
"options": Object {
"limit": 10000,
},
"test": /\\\\\\.\\(gif\\|ico\\|jpg\\|jpeg\\|png\\|svg\\|webp\\)\\$/i,
"test": /\\\\\\.\\(gif\\|ico\\|jpg\\|jpeg\\|png\\|svg\\|webp\\)\\$/,
},
Object {
"include": "<rootDir>/src",
"loader": "url-loader",
"options": Object {
"limit": 10000,
},
"test": /\\\\\\.\\(mp4\\|webm\\)\\$/i,
"test": /\\\\\\.\\(mp4\\|webm\\)\\$/,
},
Object {
"include": "<rootDir>/src",
"loader": "url-loader",
"options": Object {
"limit": 10000,
},
"test": /\\\\\\.\\(aac\\|m4a\\|mp3\\|oga\\|ogg\\|wav\\)\\$/i,
"test": /\\\\\\.\\(aac\\|m4a\\|mp3\\|oga\\|ogg\\|wav\\)\\$/,
},
],
},
Expand Down
16 changes: 8 additions & 8 deletions tasks/build/__snapshots__/webpackReleaseConfig.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -90,31 +90,31 @@ Object {
"options": Object {
"limit": 10000,
},
"test": /\\\\\\.\\(eot\\|ttf\\|woff\\|woff2\\)\\(\\\\\\?\\.\\*\\)\\?\\$/i,
"test": /\\\\\\.\\(eot\\|ttf\\|woff\\|woff2\\)\\(\\\\\\?\\.\\*\\)\\?\\$/,
},
Object {
"include": "<rootDir>/src",
"loader": "url-loader",
"options": Object {
"limit": 10000,
},
"test": /\\\\\\.\\(gif\\|ico\\|jpg\\|jpeg\\|png\\|svg\\|webp\\)\\$/i,
"test": /\\\\\\.\\(gif\\|ico\\|jpg\\|jpeg\\|png\\|svg\\|webp\\)\\$/,
},
Object {
"include": "<rootDir>/src",
"loader": "url-loader",
"options": Object {
"limit": 10000,
},
"test": /\\\\\\.\\(mp4\\|webm\\)\\$/i,
"test": /\\\\\\.\\(mp4\\|webm\\)\\$/,
},
Object {
"include": "<rootDir>/src",
"loader": "url-loader",
"options": Object {
"limit": 10000,
},
"test": /\\\\\\.\\(aac\\|m4a\\|mp3\\|oga\\|ogg\\|wav\\)\\$/i,
"test": /\\\\\\.\\(aac\\|m4a\\|mp3\\|oga\\|ogg\\|wav\\)\\$/,
},
],
},
Expand Down Expand Up @@ -231,31 +231,31 @@ Object {
"options": Object {
"limit": 10000,
},
"test": /\\\\\\.\\(eot\\|ttf\\|woff\\|woff2\\)\\(\\\\\\?\\.\\*\\)\\?\\$/i,
"test": /\\\\\\.\\(eot\\|ttf\\|woff\\|woff2\\)\\(\\\\\\?\\.\\*\\)\\?\\$/,
},
Object {
"include": "<rootDir>/src",
"loader": "url-loader",
"options": Object {
"limit": 10000,
},
"test": /\\\\\\.\\(gif\\|ico\\|jpg\\|jpeg\\|png\\|svg\\|webp\\)\\$/i,
"test": /\\\\\\.\\(gif\\|ico\\|jpg\\|jpeg\\|png\\|svg\\|webp\\)\\$/,
},
Object {
"include": "<rootDir>/src",
"loader": "url-loader",
"options": Object {
"limit": 10000,
},
"test": /\\\\\\.\\(mp4\\|webm\\)\\$/i,
"test": /\\\\\\.\\(mp4\\|webm\\)\\$/,
},
Object {
"include": "<rootDir>/src",
"loader": "url-loader",
"options": Object {
"limit": 10000,
},
"test": /\\\\\\.\\(aac\\|m4a\\|mp3\\|oga\\|ogg\\|wav\\)\\$/i,
"test": /\\\\\\.\\(aac\\|m4a\\|mp3\\|oga\\|ogg\\|wav\\)\\$/,
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion tasks/build/createConfig/rules/audio.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module.exports = include => {
return {
test: /\.(aac|m4a|mp3|oga|ogg|wav)$/i,
test: /\.(aac|m4a|mp3|oga|ogg|wav)$/,
include,
loader: 'url-loader',
options: {
Expand Down
2 changes: 1 addition & 1 deletion tasks/build/createConfig/rules/fonts.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module.exports = include => {
return {
test: /\.(eot|ttf|woff|woff2)(\?.*)?$/i,
test: /\.(eot|ttf|woff|woff2)(\?.*)?$/,
include,
loader: 'url-loader',
options: {
Expand Down
2 changes: 1 addition & 1 deletion tasks/build/createConfig/rules/images.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module.exports = include => {
return {
test: /\.(gif|ico|jpg|jpeg|png|svg|webp)$/i,
test: /\.(gif|ico|jpg|jpeg|png|svg|webp)$/,
include,
loader: 'url-loader',
options: {
Expand Down
2 changes: 1 addition & 1 deletion tasks/build/createConfig/rules/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module.exports = include => {
return {
test: /\.(mp4|webm)$/i,
test: /\.(mp4|webm)$/,
include,
loader: 'url-loader',
options: {
Expand Down

0 comments on commit 7db4db2

Please sign in to comment.