In this tutorial, we’ll configure our development environment and make a code change to a fork of BigCommerce’s Checkout JS (also known as Optimized One-Page Checkout).
We recommend that Windows 10 users use Windows Subsystem for Linux.
Fork and clone checkout-js; then, install dependencies.
Start webpack in watch mode and launch dev server.
http://127.0.0.1:8080/ to confirm the dev server is running (you should see content from build/).Next, configure your sandbox to use the files served up by your dev server.
http://127.0.0.1:8080/auto-loader-dev.js into Script URL.Learn more about installing custom checkouts.
Make a code change and wait a few seconds for webpack to reload the dev server. For example, the code below adds a <div> to the Checkout component defined in src/app/checkout/Checkout.tsx.