首页 > 其他 > 详细

[NPM] Pipe data from one npm script to another

时间:2017-02-06 20:44:29      阅读:266      评论:0      收藏:0      [点我收藏+]

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:

  • node-sass src/index.scss
  • Then pass the result into "postcss -c .postcssrc.json"
  • Then pass the reuslt into "cssmin"

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!