mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-22 11:57:27 +08:00
Add support for *.jpeg file extension. (#624)
This commit is contained in:
committed by
Ville Immonen
parent
66702915e6
commit
2c6f1da4d0
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user