-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid tons of *.json.gzip-files created in project root when running with docker node #620
Conversation
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
cacheDirectory: true, | ||
// It enables caching results in ./node_modules/.cache/create-react-app/ | ||
// directory for faster rebuilds. | ||
cacheDirectory: findCacheDir({ name: 'create-react-app' }), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The convention seems to be that this should be the project name from package.json. Since this file is used by react-scripts
, should we use react-scripts
as the name here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree
I updated the PR |
I tested this using the offical Node Docker image and it works, the cache files were stored in Thanks for the PR @thangngoc89! |
When is the next release of this planned? |
Within a few days. |
This should be fixed in 0.4.2. |
@gaearon Upgrade went smooth, and no gzip in my docker container. 👍 |
…with docker node (facebook#620) * Specify cache directory for babel loader * Use `react-scripts` for folder name instead
Upgrade `babel-loader` and remove the cache directory configuration that was added in facebook#620. `babel-loader` now uses the `./node_modules/.cache/babel-loader` directory by default, so the custom config is no longer needed.
Upgrade `babel-loader` and remove the cache directory configuration that was added in #620. `babel-loader` now uses the `./node_modules/.cache/babel-loader` directory by default, so the custom config is no longer needed.
Upgrade `babel-loader` and remove the cache directory configuration that was added in facebook#620. `babel-loader` now uses the `./node_modules/.cache/babel-loader` directory by default, so the custom config is no longer needed.
Upgrade `babel-loader` and remove the cache directory configuration that was added in facebook#620. `babel-loader` now uses the `./node_modules/.cache/babel-loader` directory by default, so the custom config is no longer needed.
Upgrade `babel-loader` and remove the cache directory configuration that was added in facebook#620. `babel-loader` now uses the `./node_modules/.cache/babel-loader` directory by default, so the custom config is no longer needed.
Fixes #483
Fixes #612