diff --git a/examples/persistent-caching/README.md b/examples/persistent-caching/README.md index 44191632c..3c1a77825 100644 --- a/examples/persistent-caching/README.md +++ b/examples/persistent-caching/README.md @@ -21,6 +21,8 @@ module.exports = (env = "development") => ({ }, cache: { type: "filesystem", + // changing the cacheDirectory is optional, + // by default it will be in `node_modules/.cache` cacheDirectory: path.resolve(__dirname, ".cache") } }); diff --git a/examples/persistent-caching/webpack.config.js b/examples/persistent-caching/webpack.config.js index 914e79639..454ef2f51 100644 --- a/examples/persistent-caching/webpack.config.js +++ b/examples/persistent-caching/webpack.config.js @@ -6,6 +6,8 @@ module.exports = (env = "development") => ({ }, cache: { type: "filesystem", + // changing the cacheDirectory is optional, + // by default it will be in `node_modules/.cache` cacheDirectory: path.resolve(__dirname, ".cache") } });