Hey, do any of you use vite-plugin-shopify for working with Shopify themes?
I previously used Gulp, but it feels outdated. I want to write logic using TypeScript and styles with Tailwind, or just SCSS. Vite handles compilation well and updates even the smallest changes in a fraction of a second using hot-reload.
However, I have an issue with deployment. I work with GitHub branches connected to Shopify:
• Main branch → Published theme
• Develop branch → For ongoing work, connected to Shopify as an unpublished theme
This setup works great until I need to deploy and deal with customizations made directly in the CMS (e.g., replacing images in a slider).
If I work on develop and then deploy to main, I can have differences between branches because a client might change images in the published theme or disable an element.
Previously, when using Gulp, I would simply merge develop into main, and the changes would sync. If there were modifications on main, I would pull them back.
Do you have any good workflows or ideas on how to handle this? Maybe suggestions for a different stack that works well? I like keeping things clean, optimized, and secure during deployment.
npm package: