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
d9a29745
Commit
d9a29745
authored
7 years ago
by
Dan Abramov
Committed by
GitHub
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Tidy up some build logs (#2197)
parent
c7c3a521
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/react-dev-utils/formatWebpackMessages.js
+2
-1
packages/react-dev-utils/formatWebpackMessages.js
packages/react-scripts/config/webpack.config.prod.js
+7
-0
packages/react-scripts/config/webpack.config.prod.js
with
9 additions
and
1 deletion
+9
-1
packages/react-dev-utils/formatWebpackMessages.js
+
2
-
1
View file @
d9a29745
...
...
@@ -65,7 +65,8 @@ function formatMessage(message, isError) {
lines
[
1
]
.
replace
(
"
Cannot resolve 'file' or 'directory'
"
,
''
)
.
replace
(
'
Cannot resolve module
'
,
''
)
.
replace
(
'
Error:
'
,
''
),
.
replace
(
'
Error:
'
,
''
)
.
replace
(
'
[CaseSensitivePathsPlugin]
'
,
''
),
];
}
...
...
This diff is collapsed.
Click to expand it.
packages/react-scripts/config/webpack.config.prod.js
+
7
-
0
View file @
d9a29745
...
...
@@ -305,6 +305,13 @@ module.exports = {
// about it being stale, and the cache-busting can be skipped.
dontCacheBustUrlsMatching
:
/
\.\w{8}\.
/
,
filename
:
'
service-worker.js
'
,
logger
(
message
)
{
if
(
message
.
indexOf
(
'
Total precache size is
'
)
===
0
)
{
// This message occurs for every build and is a bit too noisy.
return
;
}
console
.
log
(
message
);
},
minify
:
true
,
navigateFallback
:
publicUrl
+
'
/index.html
'
,
staticFileGlobsIgnorePatterns
:
[
/
\.
map$/
,
/asset-manifest
\.
json$/
],
...
...
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