Build your SPA for production
masterTo build your application for production, navigate to your SPA directory and run the build command. The resulting build files will be placed in the www directory of your Frappe app.
Integration with bench build:
If you want the standard bench build command to trigger your SPA build, add the following scripts to your Frappe app's root package.json file:
"dev": "cd <your-spa-folder> && yarn dev",
"build": "cd <your-spa-folder> && yarn build"cd <your-spa-name> && yarn build