Closed Viktor-the-great closed 5 years ago
I am unsure what you mean about a cachedAssets
option.
You either need to set cleanStaleWebpackAssets: false
or add negative patterns to cleanAfterEveryBuildPatterns: ['!index.html']
.
Going to close this. Please reopen if you are still having an issue.
On this code line fetch only emitted assets.
For this reason I can not use 'cache' option of HtmlWebpackPlugin (removes index.html on rebuild).
What about to pass 'cachedAssets' option to toJson method to fetch cached assets?