webpack-configurator
webpack-configurator copied to clipboard
resolve() breaks webpack cache parameter
Webpack supports configuring a cache
object. But resolve() creates a clone of the cache object, making it impossible to access the cached data afterwards.
My workaround for this is to restore the cache object to the original one. It would be nice if webpack-configurator handled this automatically in resolve():
const resolvedConfig = webpackConfig.resolve()
resolvedConfig.cache = webpackConfig._config.cache