Replies: 1 comment
-
Sorry for long delay, really a lot of issue
Yes, we parse your files and include any
You can use as you wish, we store
Yes, you need to pass all dependencies (paths) which may change your build, by default
There is no need to do this, webpack by default tracks your dependencies from
Yes, because the configuration file will be changed
Sorry, no, different CI often require different settings, it is best to just try and check that the cache is not invalidated/invalidated. We have couple example here - https://webpack.js.org/configuration/cache/#setup-cache-in-cicd-system
We never invalidate entire cache pack, only things which were changed, if we were more precise, we use two caches by default Feel free to feedback |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Webpack team 👋 ,
I have some questions regarding the use of the filesystem cache feature.
For context, these questions relate to adding filesystem caching to our production builds. Thank you for taking the time to review them!
config: [__filename]
), are transitive dependencies from our codebase included along the entire dependency tree? For example, does this include imports of the imports used in the Webpack configuration file? (viarequire()
)If we use custom loaders that are referenced dynamically (e.g., via
path.resolve
), should we explicitly track these dependencies, along with any other dynamic imports? For example:loader: path.resolve(baseDirPath, 'webpack/loaders/json-loader.js'),
package.json
&yarn.lock
as a dependency, as a way to track npm dependency changes? For example like so:hash: true
for CI)HtmlWebpackPlugin
), rather than invalidating an entire cache pack?Beta Was this translation helpful? Give feedback.
All reactions