[NPM] Pipe data from one npm script to another

Posted Answer1215

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[NPM] Pipe data from one npm script to another相关的知识,希望对你有一定的参考价值。

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的主要内容,如果未能解决你的问题,请参考以下文章

text [dimension-tag-video-files] one-liner将视频文件的分辨率添加到其文件名中(仅打印命令,即dryrun - pipe to exec

npm scripts hooks All In One

openTSDB ConnectionManager: Unexpected exception from downstream java.io.IOException: Broken pipe(示

docker exec failed!!error from pipe caused "read parent: connection reset by peer"问题

PyTorch常用函数摘抄

pipe