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

[Feature Request]: --no-cache flag for webpack@5 #1095

Closed
Andarist opened this issue Oct 11, 2019 · 6 comments
Closed

[Feature Request]: --no-cache flag for webpack@5 #1095

Andarist opened this issue Oct 11, 2019 · 6 comments

Comments

@Andarist
Copy link

Andarist commented Oct 11, 2019

Is your feature request related to a problem? Please describe.
I often (well, from time to time) find myself editing node_modules by hand to debug a particular problem with some dependency. And webpack@5 with its persistent caching might make this process rather difficult - because it would require changing a config.

Actually you already have --cache=false here, but I'm not sure if this right now can disable persistent caching and Tobias has kinda redirected me to here with this feature request. If this is already handled - then sorry for reporting and feel free to close this.

Describe the solution you'd like
a special CLI flag that would disable persistent caching for a current build

Describe alternatives you've considered
n/a

Additional context
webpack/webpack#9802 (comment)

@anikethsaha
Copy link
Member

This is actually good if it's not present already! It will be too handy for the user to use it from CLI
I don't think right now the persistent caching flag is there. Is it @evenstensberg?
But as far as the webpack@5 is concerned, I guess we can wait for the major release as that is currently in beta, and then it can be added in the CLI. What do you think?

@evenstensberg
Copy link
Member

We can add the cache flag for the new cli

@evenstensberg evenstensberg changed the title --no-cache flag for webpack@5 [Feature Request]: --no-cache flag for webpack@5 Oct 16, 2019
@Andarist
Copy link
Author

Would be great to at least prepare a PR for this before webpack@5 hits stable, but please do whatever you see most appropriate here

@evenstensberg
Copy link
Member

Can do both

@evenstensberg
Copy link
Member

@Andarist
Copy link
Author

Thank you very much 🙏 ❤️

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

3 participants