Check out example codes for "how to package tailwindcss for deployment". It will help you in understanding the concepts better.

Code Example 1

$ heroku config:set NPM_CONFIG_PRODUCTION=false

Learn ReactJs, React Native from akashmittal.com