hyva-themes / magento2-checkout-example

A React Checkout template that allows you to quickly create a customized Hyvä Checkout for your project.
11 stars 2 forks source link

Build and chunk files #35

Open Man4x opened 1 year ago

Man4x commented 1 year ago

First, thank you for all of this. I'm using this module for customizing the Hyva Reach Checkout and since it runs great in local dev mode , I "npm run build" to test it online. A new react-checkout.js and a bunch of chunks.js were created then, but as the react-checkout.js is perfectly available in the Magento static directory, chunks files loading lead to 404s. As far as I understood, the react-checkout.js file is loaded asynchronously from the block template but inside it, chunks are expected to be in the ../../view/frontend/web/js/[name].chunk.js directory, as set in the config-override.js Is there any simple way to fix this ?