Closed montalvomiguelo closed 7 months ago
Whoa. 👏
Thanks for this! Tested and it's definitely way more tolerable than it was before—great first step. I'm wondering if we can eventually speed it up even more as it still takes around 5 seconds from compilation to actually seeing the file change in preview.
Are we able to merge this in? cc @fleveillee
This was merged through https://github.com/archetype-themes/plugin-theme-component/pull/365
Fixes #340
This PR minimizes the number of file writes/copies by checking the diff between sources and destinations so that the Shopify CLI processes and syncs changes faster.
I tested that this solution works as expected by starting dev mode with Archie and serving my theme via shopify theme dev --path .explorer --verbose
Before
Shopify CLI had to process all files for potential sync
After
Shopify CLI processes and syncs the files that have changed only