Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9b810bd

Browse files
benjamnzpao
authored andcommitted
Cache modules for jsx grunt tasks in react-tools/.module-cache.
As of Commoner v0.6.11, the default is to put the cache files in output/.module-cache, which used to be build/modules/.module-cache before this commit. That still happens when you run bin/jsx directly, just not for grunt tasks anymore. The module cache needs to be cleared much less often than build/modules, so it doesn't make sense to throw away all that work. (cherry picked from commit 880ada0)
1 parent 1c486c4 commit 9b810bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

grunt/tasks/jsx.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module.exports = function() {
99

1010
var args = [
1111
"bin/jsx",
12+
"--cache-dir", ".module-cache",
1213
config.sourceDir,
1314
config.outputDir
1415
];

0 commit comments

Comments
 (0)