Skip to content

Commit 2c6f1da

Browse files
mareksuscakfson
authored andcommitted
Add support for *.jpeg file extension. (#624)
1 parent 6670291 commit 2c6f1da

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

config/eslint.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module.exports = {
4747
settings: {
4848
'import/ignore': [
4949
'node_modules',
50-
'\\.(json|css|jpg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm)$',
50+
'\\.(json|css|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm)$',
5151
],
5252
'import/extensions': ['.js'],
5353
'import/resolver': {

config/webpack.config.dev.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ module.exports = {
128128
// When you `import` an asset, you get its (virtual) filename.
129129
// In production, they would get copied to the `build` folder.
130130
{
131-
test: /\.(ico|jpg|png|gif|eot|otf|webp|svg|ttf|woff|woff2)(\?.*)?$/,
131+
test: /\.(ico|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2)(\?.*)?$/,
132132
exclude: /\/favicon.ico$/,
133133
loader: 'file',
134134
query: {

config/webpack.config.prod.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ module.exports = {
138138
// "file" loader makes sure those assets end up in the `build` folder.
139139
// When you `import` an asset, you get its filename.
140140
{
141-
test: /\.(ico|jpg|png|gif|eot|otf|webp|svg|ttf|woff|woff2)(\?.*)?$/,
141+
test: /\.(ico|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2)(\?.*)?$/,
142142
exclude: /\/favicon.ico$/,
143143
loader: 'file',
144144
query: {

scripts/utils/createJestConfig.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = (resolve, rootDir) => {
2121
const config = {
2222
moduleFileExtensions: ['jsx', 'js', 'json'],
2323
moduleNameMapper: {
24-
'^.+\\.(jpg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm)$': resolve('config/jest/FileStub.js'),
24+
'^.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm)$': resolve('config/jest/FileStub.js'),
2525
'^.+\\.css$': resolve('config/jest/CSSStub.js')
2626
},
2727
scriptPreprocessor: resolve('config/jest/transform.js'),

0 commit comments

Comments
 (0)