Consider using find-cache-dir to locate the default cache directory. This is what babel-loader and eslint-loader are already doing, so it shouldn't surprise the user. I'm personally interested in this because I don't like unnecessary configuration (changing plugin options), .gitignore / .eslintignore / .prettierignore / .dockerignore / .*ignore bloat, and longer directory listings.
One thing to look out for is that yarn wipes out node_modules/.cache on every install, apparently, but no big deal, this is just a cache.
Consider using
find-cache-dir
to locate the default cache directory. This is whatbabel-loader
andeslint-loader
are already doing, so it shouldn't surprise the user. I'm personally interested in this because I don't like unnecessary configuration (changing plugin options),.gitignore
/.eslintignore
/.prettierignore
/.dockerignore
/.*ignore
bloat, and longer directory listings.One thing to look out for is that
yarn
wipes outnode_modules/.cache
on every install, apparently, but no big deal, this is just a cache.