mzgoddard / hard-source-webpack-plugin

https://www.npmjs.com/package/hard-source-webpack-plugin
ISC License
2.7k stars 160 forks source link

sizeThreshold is an ineffective #532

Closed alex86gbk closed 4 years ago

alex86gbk commented 4 years ago

Expected Behavior

Auto writing new cache when restarting webpack with plugins config: cachePrune.sizeThreshold

Actual Behavior

Still reading from old cache

Is an error being thrown?

no error

Steps to Reproduce

new HardSourceWebpackPlugin({
cachePrune: {
sizeThreshold: 100 * 1024 * 1024
},
}),

image

image

Operating System, Node, and NPM dependency versions

Windows 7
Node 10.6.0

"devDependencies": {
  "babel-core": "^6.26.3",
  "babel-loader": "^7.1.4",
  "babel-preset-env": "^1.7.0",
  "css-loader": "^3.4.2",
  "hard-source-webpack-plugin": "0.13.1",
  "html-webpack-injector": "1.1.4",
  "html-webpack-plugin": "^4.3.0",
  "style-loader": "^1.1.2",
  "webpack": "^4.4.1",
  "webpack-cli": "^3.1.1",
  "webpack-dev-server": "^3.1.11"
},
"dependencies": {
  "lodash": "^4.15.0"
}