mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-01-12 22:46:30 +08:00
This commit is contained in:
@@ -44,7 +44,7 @@ module.exports = {
|
||||
settings: {
|
||||
'import/ignore': [
|
||||
'node_modules',
|
||||
'\\.(json|css|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$',
|
||||
'\\.(json|css|ico|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$',
|
||||
],
|
||||
'import/extensions': ['.js'],
|
||||
'import/resolver': {
|
||||
|
||||
@@ -21,7 +21,7 @@ module.exports = (resolve, rootDir, isEjecting) => {
|
||||
collectCoverageFrom: ['src/**/*.{js,jsx}'],
|
||||
moduleFileExtensions: ['jsx', 'js', 'json'],
|
||||
moduleNameMapper: {
|
||||
'^.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': resolve('config/jest/FileStub.js'),
|
||||
'^.+\\.(ico|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': resolve('config/jest/FileStub.js'),
|
||||
'^.+\\.css$': resolve('config/jest/CSSStub.js')
|
||||
},
|
||||
setupFiles: [resolve('config/polyfills.js')],
|
||||
|
||||
Reference in New Issue
Block a user