To develop Merchant Center Custom Applications we recommend using the
It's a command-line interface, inspired by
react-scripts to develop and build a React application.
This command starts the application in
developmentmode. The page will reload if you edit source files.
This command bundles the application in
productionmode to the
dist/assetsfolder. It also creates an
index.html.templatefile, which contains references to the generated bundle entry points. This file needs to be compiled to
index.html, based on runtime values. See the deployment section for more information.
This command compiles the
index.html.templatefile into an
index.htmlfile, based on the application config. Additionally, it also generates Content Security Policy headers, including SHA hashes based on the runtime configuration. See the deployment section for more information.
This script requires
mc-scripts buildto be executed first.
Extracts Intl messages into JSON files. See the command
--helpfor more information.