Sharing assets between Hydrogen and checkout.liquid
#2202
Unanswered
ramiroazar
asked this question in
Help
Replies: 1 comment 2 replies
-
We also use Is your merchant open to migrating to Checkout Extensibility (i.e. Checkout UI Extensions, Web Pixels, and the Checkout Branding API)? I can't speak for Shopify here, but given what I'm seeing I'd be very surprised if any new development occurs in Hydrogen that's backwards compatible with |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The project we're currently working on is under a Shopify Plus subscription.
It requires some checkout customisations, so we're working with a
checkout.liquid
file.A lot of the visual customisations are inherited from the rest of the site, which in this case is a Hydrogen frontend.
It seems like a no brainer to generate the stylesheet required for the checkout within Hydrogen, where all of our style utilities and build processes already are.
Vite hashes everything by default, which is desired behaviour, but makes it impossible to reliably reference a file.
This seems like it can be disabled using
rollupOptions
, but for all files instead of just specific ones?https://vitejs.dev/guide/build.html#customizing-the-build
Does anyone have any suggestions on how to use Hydrogen assets within the checkout?
Beta Was this translation helpful? Give feedback.
All reactions