node.js - packge.json中npm script 这些参数都是什么
阿神
阿神 2017-04-17 15:35:30
0
3
581

npm script 参数都是那里来的?求教

截图是AngularClass github 上的开源ng2项目里面packge.json里面的配置文件,这些是webpack打包工具的参数?但是在webpack API没有发现这些参数,还是node执行的参数?

阿神
阿神

闭关修行中......

reply all(3)
大家讲道理

is to collect the commands entered in the node into the script, so that you can type less code, just to facilitate us.
--progress These are the corresponding commands, like yours are some of the webpack For packaging commands, for the convenience of observation, the output is displayed on the node
The most important point is to reduce typing code on the command line and reduce the amount of code typed
I recommend an article to you, well written
http://www.ruanyifeng.com/blo...

刘奇

I don’t know what the question means. This parameter is either manually coded by myself, or it is born with an environment automatic configuration tool like vue-cli. The purpose is to execute the node program with simple and easy-to-understand commands. , such as: "npm start", "npm run dev:server"

黄舟

scripts are commands that can be run in the shell

Then these parameters are the parameters of the command

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template