I have updated my frontend workflow from the old Shopify Themekit way to a Webpack way. Whilst it's great that I'm using the latest frontend tech I'm struggling with this new workflow.
In my old workflow, I could push changes to the live theme and pull changes from the live theme via Github and Shopify Themekit gem. Nothing was compiled. Whilst this was easier to manage it wasn't great for performance.
Local theme >> Github >> Live theme
The new worflow is (based on Slater Base theme):
Local theme >> Webpack >> Build >> Live theme
I have Github set up but it's not really doing anything as it's not helping to sync between themes but just pushing changes from my local development theme to the repo. Now the src files in my local theme are being compiled and minified by Webpack into a build directory and pushed into the appropriate format on Shopify live theme.
The problems I'm struggling with are:
How can I pull down changes from the Live theme? Is this even possible? Shopify apps make changes to the code on the live theme and clients change code/settings etc. I need to pull these down into my local theme to deploy as a whole otherwise themes will be out of sync and just a mess.
How do I use Liquid in the .js and .scss files in my src directory? At the moment, I can't add a .liquid extension to the file or at least it doesn't do anything.