In an effort to bypass saving temporary build files you can leverage piping and output redirection to streamline your build process. In addition using these technique can speed up your build process.
"build:css": "node-sass src/index.scss | postcss -c .postcssrc.json | cssmin > public/index.min.css",
So first it goes though:
After those, create a output file "index.min.css" and write the result.
[NPM] Pipe data from one npm script to another
原文:http://www.cnblogs.com/Answer1215/p/6371596.html