File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 10
10
// @remove -on-eject-end
11
11
12
12
var path = require ( 'path' ) ;
13
+ var findCacheDir = require ( 'find-cache-dir' ) ;
13
14
14
15
module . exports = {
15
16
// Don't try to find .babelrc because we want to force this configuration.
16
17
babelrc : false ,
17
18
// This is a feature of `babel-loader` for webpack (not Babel itself).
18
- // It enables caching results in OS temporary directory for faster rebuilds.
19
- cacheDirectory : true ,
19
+ // It enables caching results in ./node_modules/.cache/react-scripts/
20
+ // directory for faster rebuilds.
21
+ cacheDirectory : findCacheDir ( { name : 'react-scripts' } ) ,
20
22
presets : [
21
23
// Latest stable ECMAScript features
22
24
require . resolve ( 'babel-preset-latest' ) ,
Original file line number Diff line number Diff line change 56
56
"extract-text-webpack-plugin" : " 1.0.1" ,
57
57
"file-loader" : " 0.9.0" ,
58
58
"filesize" : " 3.3.0" ,
59
+ "find-cache-dir" : " ^0.1.1" ,
59
60
"fs-extra" : " 0.30.0" ,
60
61
"gzip-size" : " 3.0.0" ,
61
62
"html-loader" : " 0.4.3" ,
You can’t perform that action at this time.
0 commit comments