make sure the build file is deleted from app/static/
run build_and_export.sh file located at app/main/template/fe
the above file does the following three steps
build tailwindcss for production (by purgin classes that are not used).
- makesure in tailwind.config.js the purge.enabled value is set to true.
- run npm run build:tailwind
compile react to a production build npm run build.
move the build file to app/static/ file.
update the js and css files in app/main/template/index.html file.