## Why PurgeCacheWebpackPlugin?
npm install purge-cache-webpack-pluginwebpack won't purge oudateed filesystem cache files, though we have set maxAge in webpack config.
This plugin as a workaround to resolve this issue.
``js``
/* @type {import('webpack').Configuration}/
const config = {
cache: {
type: "filesystem", // only working with filesystem cache
maxAge: 1000 * 60,
},
plugins: [
new PurgeCacheWebpackPlugin(),
// ...
],
// ...
};