Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
2c6f1da4
Commit
2c6f1da4
authored
8 years ago
by
Marek Suscak
Committed by
Ville Immonen
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Add support for *.jpeg file extension. (#624)
parent
66702915
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
config/eslint.js
+1
-1
config/eslint.js
config/webpack.config.dev.js
+1
-1
config/webpack.config.dev.js
config/webpack.config.prod.js
+1
-1
config/webpack.config.prod.js
scripts/utils/createJestConfig.js
+1
-1
scripts/utils/createJestConfig.js
with
4 additions
and
4 deletions
+4
-4
config/eslint.js
+
1
-
1
View file @
2c6f1da4
...
...
@@ -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
'
:
{
...
...
This diff is collapsed.
Click to expand it.
config/webpack.config.dev.js
+
1
-
1
View file @
2c6f1da4
...
...
@@ -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
:
{
...
...
This diff is collapsed.
Click to expand it.
config/webpack.config.prod.js
+
1
-
1
View file @
2c6f1da4
...
...
@@ -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
:
{
...
...
This diff is collapsed.
Click to expand it.
scripts/utils/createJestConfig.js
+
1
-
1
View file @
2c6f1da4
...
...
@@ -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
'
),
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment