Skip to content

Commit

Permalink
Normalize babel caching across the board (facebook#5053)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer authored Sep 21, 2018
1 parent f694309 commit be01ad0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ module.exports = {
// It enables caching results in ./node_modules/.cache/babel-loader/
// directory for faster rebuilds.
cacheDirectory: true,
// Don't waste time on Gzipping the cache
cacheCompression: false,
highlightCode: true,
},
},
Expand Down Expand Up @@ -276,6 +278,8 @@ module.exports = {
require.resolve('babel-preset-react-app/dependencies'),
],
cacheDirectory: true,
// Don't waste time on Gzipping the cache
cacheCompression: false,
highlightCode: true,
},
},
Expand Down
5 changes: 5 additions & 0 deletions config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@ module.exports = {
},
],
],
cacheDirectory: true,
// Save disk space when time isn't as important
cacheCompression: true,
compact: true,
highlightCode: true,
},
Expand All @@ -305,6 +308,8 @@ module.exports = {
require.resolve('babel-preset-react-app/dependencies'),
],
cacheDirectory: true,
// Save disk space when time isn't as important
cacheCompression: true,
highlightCode: true,
},
},
Expand Down

0 comments on commit be01ad0

Please sign in to comment.