Skip to content

What are the implications of setting "cache" to true? #76

@evbo

Description

@evbo

Documentation Is:

  • Missing
  • Needed
  • Confusing
  • Not Sure?

Please Explain in Detail...

Please just add a 1 liner explaining what a "cache" is in the context of minification.

In general I know what a cache is - some (local) storage of files/data to reuse for avoiding redundant regeneration of (if no changes exist) for faster build times. But if there were only benefits to adding a cache then why even include it as an option? What are the implications of setting cache to true (for the typical use case where someone isn't using a custom minify - or is that the only reason you might not want to)?

Your Proposal for Changes

Something like this:

Enable file caching. Default path to cache directory: node_modules/.cache/terser-webpack-plugin. Enabling this option will < improve build speed at the cost of...? >

...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions