uicrooks / shopify-theme-lab

Shopify theme development environment using Liquid, Vue and Tailwind CSS. Built on top of Shopify CLI 🧪
https://uicrooks.github.io/shopify-theme-lab-docs/
MIT License
743 stars 132 forks source link

Option to name the root vue elements #156

Closed andyxmas closed 2 years ago

andyxmas commented 2 years ago

If you have multiple vue instances, devtools shows these as app1, app2, app3 etc. This PR allows you to add a data-name="someName" attribute to the element with the vue attribute and the root element will take that name. If no name is passed, it continues to show app1 etc.

What kind of change does this PR introduce? (check at least one)

Does this PR introduce a breaking change? (check one)

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements:

If adding a new feature, the PR's description includes:

Other information:

Whilst I'm not using this theme directly, I've taken lots of inspiration from it for my work, thank you.