Check out example codes for "minify css package.json". It will help you in understanding the concepts better.

Code Example 1

"scripts": {
  "postcss": "postcss --use postcss-cssnext --use cssnano --output styles-out.css styles.css"
}

Learn ReactJs, React Native from akashmittal.com