Skip to content
This repository was archived by the owner on Dec 5, 2019. It is now read-only.

Commit 380bb54

Browse files
fix: invalidate cache after changing node version (#396)
1 parent a5121cf commit 380bb54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ class UglifyJsPlugin {
231231

232232
if (this.options.cache) {
233233
const defaultCacheKeys = {
234-
// eslint-disable-next-line global-require
235234
'uglify-js': uglifyJsPackageJson.version,
235+
node_version: process.version,
236236
// eslint-disable-next-line global-require
237237
'uglifyjs-webpack-plugin': require('../package.json').version,
238238
'uglifyjs-webpack-plugin-options': this.options,

0 commit comments

Comments
 (0)