diff --git a/config/eslint.js b/config/eslint.js index 72ba9eb52bbfff361862d9e8409bb84eb041713e..9c77d1f7b39645092793b8a1904808b440e0c333 100644 --- a/config/eslint.js +++ b/config/eslint.js @@ -47,7 +47,7 @@ module.exports = { settings: { 'import/ignore': [ 'node_modules', - '\\.(json|css|jpg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm)$', + '\\.(json|css|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm)$', ], 'import/extensions': ['.js'], 'import/resolver': { diff --git a/config/webpack.config.dev.js b/config/webpack.config.dev.js index e9d5a1f49468d1091a3036fb71f158c9d920b620..34bda5590a3db22b65f82843e742b6c8795db7d2 100644 --- a/config/webpack.config.dev.js +++ b/config/webpack.config.dev.js @@ -128,7 +128,7 @@ module.exports = { // When you `import` an asset, you get its (virtual) filename. // In production, they would get copied to the `build` folder. { - test: /\.(ico|jpg|png|gif|eot|otf|webp|svg|ttf|woff|woff2)(\?.*)?$/, + test: /\.(ico|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2)(\?.*)?$/, exclude: /\/favicon.ico$/, loader: 'file', query: { diff --git a/config/webpack.config.prod.js b/config/webpack.config.prod.js index be27a29e4bf3ee6cb3c47680c76845b93cbf018b..c03b6ef272fce22143e0e0ec57cc6fbb301ab1d3 100644 --- a/config/webpack.config.prod.js +++ b/config/webpack.config.prod.js @@ -138,7 +138,7 @@ module.exports = { // "file" loader makes sure those assets end up in the `build` folder. // When you `import` an asset, you get its filename. { - test: /\.(ico|jpg|png|gif|eot|otf|webp|svg|ttf|woff|woff2)(\?.*)?$/, + test: /\.(ico|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2)(\?.*)?$/, exclude: /\/favicon.ico$/, loader: 'file', query: { diff --git a/scripts/utils/createJestConfig.js b/scripts/utils/createJestConfig.js index 395151afa6ad81589f42a153fbaaa28f67b92fb1..8d3b60f8614353e164dcd3a1f0f2b9050fb2a334 100644 --- a/scripts/utils/createJestConfig.js +++ b/scripts/utils/createJestConfig.js @@ -21,7 +21,7 @@ module.exports = (resolve, rootDir) => { const config = { moduleFileExtensions: ['jsx', 'js', 'json'], moduleNameMapper: { - '^.+\\.(jpg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm)$': resolve('config/jest/FileStub.js'), + '^.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm)$': resolve('config/jest/FileStub.js'), '^.+\\.css$': resolve('config/jest/CSSStub.js') }, scriptPreprocessor: resolve('config/jest/transform.js'),