v2: Move dist dir out of .parcel-cache
See original GitHub issue💬 RFC
I have to clear .parcel-cache quite often to get around stale cache issues, but this wipes .parcel-cache\dist. As noted in #3407, I have set up special data inside .parcel-cache\dist so that I can test from a dev server, but this makes wiping the parcel cache quite annoying.
Currently, it is hardcoded that the dist dir is inside the cache dir: https://github.com/parcel-bundler/parcel/blob/v2/packages/reporters/dev-server/src/ServerReporter.js#L25
But this makes it hard to wipe the assets from the build without affecting the dist folder.
Alternatively, the cache folder could set things up so that it is .parcel-cache/dist
and .parcel-cache/assets
, and then I can simply wipe one folder.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Migration - Parcel
Let's walk through a couple basic steps to upgrade from Parcel 1 to Parcel 2. Package name. #. The first thing to note...
Read more >Stephan Meijer Twitterissä: "Cache files are now written to a ...
Cache files are now written to a `.parcel-cache` folder in your project root. You want to add that to your `.gitignore`. Käännä twiitti....
Read more >parcel always caches no matter - Stack Overflow
... the browser cache by doing a hard refresh ( Ctrl Shift R in Firefox). ... from the cache – a .parcel-cache folder...
Read more >How to Bundle a Web App with Parcel.js - DigitalOcean
You can press ENTER to move through each question, or change any of the ... This regenerates the '.parcel-cache and dist folders and...
Read more >@parcel/cache | Yarn - Package Manager
Changelog. All notable changes to Parcel will be documented in this file. The format is based on Keep a Changelog and Parcel adheres...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@alidlo there’s an issue to track this #4332 we’re working on fixing this.
@devongovett Testing out Parcel 2, so I’ll add - I have to delete the cache any time I make a change to a linked package.