Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use cache with CLI? #3728

Open
1 of 4 tasks
cdalexndr opened this issue Aug 15, 2020 · 2 comments
Open
1 of 4 tasks

How to use cache with CLI? #3728

cdalexndr opened this issue Aug 15, 2020 · 2 comments

Comments

@cdalexndr
Copy link

Documentation Is:

  • Missing
  • Needed
  • Confusing
  • Not Sure?

Please Explain in Detail...

https://rollupjs.org/guide/en/#cache includes a code snippet only for Javascript API.
How can I use cache with a configuration file that may be used with CLI?

Your Proposal for Changes

Include code snippet for configuration file.

@lukastaegert
Copy link
Member

It is not possible at the moment. And for good reason as many plugins will not work well with a cache loaded from disk. On the other hand, watch mode always uses the cache automatically. So for now, I do not think documentation can be improved in the way you hope unless some issues are solved so that Rollup can work with a disk cache.

@cdalexndr
Copy link
Author

cdalexndr commented Dec 8, 2020

I'm looking for incremental build support when compiling my project with npm rollup -c.
Currently, all my bundles are recompiled on build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants