@mokahr/cache-manage-plugin
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -11,3 +11,3 @@ "use strict"; | ||
this.options.cacheHash = this.options.cacheHash; | ||
this.options.dependanceCachePaths = this.options.dependanceCachePaths || []; | ||
this.options.dependencyCachePaths = this.options.dependencyCachePaths || []; | ||
this.recordPath = this.options.cacheRecordPath + 'cacheRecord.json'; | ||
@@ -34,3 +34,3 @@ this.apply = this.apply.bind(this); | ||
needRemoveHashList.forEach(function (hash) { | ||
_this.options.dependanceCachePaths.forEach(function (_path) { | ||
_this.options.dependencyCachePaths.forEach(function (_path) { | ||
var fullPath = _path + "/" + hash; | ||
@@ -37,0 +37,0 @@ console.log('remove overdue cache', fullPath); |
{ | ||
"name": "@mokahr/cache-manage-plugin", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A webpack plugin used to mange muilti dependencies loader/plugin cache", | ||
@@ -5,0 +5,0 @@ "main": "CacheManagePlugin.js", |
@@ -37,3 +37,3 @@ # cache-manage-plugin | ||
cacheHash: someHash, | ||
dependanceCachePaths: [`node_modules/.cache/babel-loader/${someHash}`], | ||
dependencyCachePaths: [`node_modules/.cache/babel-loader/${someHash}`], | ||
}), | ||
@@ -54,3 +54,3 @@ ] | ||
### [optional] options.cacheHash: string | ||
### [required] options.cacheHash: string | ||
@@ -63,5 +63,5 @@ cacheHash mast provide; | ||
### [optional] options.dependanceCachePaths: | ||
### [optional] options.dependencyCachePaths: | ||
need to manage cache's cacheDirectory list, default value is `[]` | ||