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
74c4baeb
Unverified
Commit
74c4baeb
authored
6 years ago
by
Joe Haddad
Committed by
GitHub
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Normalize babel caching across the board (#5053)
parent
f9849a26
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/react-scripts/config/webpack.config.dev.js
+4
-0
packages/react-scripts/config/webpack.config.dev.js
packages/react-scripts/config/webpack.config.prod.js
+5
-0
packages/react-scripts/config/webpack.config.prod.js
with
9 additions
and
0 deletions
+9
-0
packages/react-scripts/config/webpack.config.dev.js
+
4
-
0
View file @
74c4baeb
...
@@ -249,6 +249,8 @@ module.exports = {
...
@@ -249,6 +249,8 @@ module.exports = {
// It enables caching results in ./node_modules/.cache/babel-loader/
// It enables caching results in ./node_modules/.cache/babel-loader/
// directory for faster rebuilds.
// directory for faster rebuilds.
cacheDirectory
:
true
,
cacheDirectory
:
true
,
// Don't waste time on Gzipping the cache
cacheCompression
:
false
,
highlightCode
:
true
,
highlightCode
:
true
,
},
},
},
},
...
@@ -276,6 +278,8 @@ module.exports = {
...
@@ -276,6 +278,8 @@ module.exports = {
require
.
resolve
(
'
babel-preset-react-app/dependencies
'
),
require
.
resolve
(
'
babel-preset-react-app/dependencies
'
),
],
],
cacheDirectory
:
true
,
cacheDirectory
:
true
,
// Don't waste time on Gzipping the cache
cacheCompression
:
false
,
highlightCode
:
true
,
highlightCode
:
true
,
},
},
},
},
...
...
This diff is collapsed.
Click to expand it.
packages/react-scripts/config/webpack.config.prod.js
+
5
-
0
View file @
74c4baeb
...
@@ -282,6 +282,9 @@ module.exports = {
...
@@ -282,6 +282,9 @@ module.exports = {
},
},
],
],
],
],
cacheDirectory
:
true
,
// Save disk space when time isn't as important
cacheCompression
:
true
,
compact
:
true
,
compact
:
true
,
highlightCode
:
true
,
highlightCode
:
true
,
},
},
...
@@ -305,6 +308,8 @@ module.exports = {
...
@@ -305,6 +308,8 @@ module.exports = {
require
.
resolve
(
'
babel-preset-react-app/dependencies
'
),
require
.
resolve
(
'
babel-preset-react-app/dependencies
'
),
],
],
cacheDirectory
:
true
,
cacheDirectory
:
true
,
// Save disk space when time isn't as important
cacheCompression
:
true
,
highlightCode
:
true
,
highlightCode
:
true
,
},
},
},
},
...
...
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