webpack-configurator icon indicating copy to clipboard operation
webpack-configurator copied to clipboard

resolve() breaks webpack cache parameter

Open kennu opened this issue 8 years ago • 0 comments

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

kennu avatar Jun 05 '16 02:06 kennu