Skip to content

Commit

Permalink
docs: fix (#741)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Apr 30, 2023
1 parent 9f98a35 commit d1d2460
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions README.md
Expand Up @@ -730,7 +730,7 @@ module.exports = {

##### `object`

Enables `transform` caching and setup cache directory and invalidation keys.
Enables `transform` caching and setup invalidation keys.

**webpack.config.js**

Expand All @@ -747,7 +747,6 @@ module.exports = {
return optimize(content);
},
cache: {
directory: path.resolve(__dirname, "cache-directory"),
keys: {
// May be useful for invalidating cache based on external values
// For example, you can invalid cache based on `process.version` - { node: process.version }
Expand Down Expand Up @@ -781,7 +780,6 @@ module.exports = {
return optimize(content);
},
cache: {
directory: path.resolve(__dirname, "cache-directory"),
keys: (defaultCacheKeys, absoluteFrom) => {
const keys = getCustomCacheInvalidationKeysSync();

Expand Down Expand Up @@ -816,7 +814,6 @@ module.exports = {
return optimize(content);
},
cache: {
directory: path.resolve(__dirname, "cache-directory"),
keys: async (defaultCacheKeys, absoluteFrom) => {
const keys = await getCustomCacheInvalidationKeysAsync();

Expand Down

0 comments on commit d1d2460

Please sign in to comment.