From 38ada7bb0d366c8bba1f4b1fddc8ad8505f6b374 Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Mon, 12 Aug 2019 16:37:12 +0200 Subject: [PATCH] make it more clear that cacheDirectory is optional --- examples/persistent-caching/README.md | 2 ++ examples/persistent-caching/webpack.config.js | 2 ++ 2 files changed, 4 insertions(+) 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") } });