Today, look at the source of Vue, a day may see a little, busy work may not have too much time to see.
Anyway, it’s time to start looking at the Vue source code.
First, let’s look at what script is executed when we type NPM run build.
The process object in Node.js is a global variable that provides information about and controls the current Node process. Then look at process.argv. This property returns an array. Property returns the absolute pathname of the executable that started the Node.js process. The second element returns the path of the JavaScript file being executed. The remaining elements are any additional command-line arguments. For example, $node process-args.js parameter 1 Parameter 2 Parameter 3 Process. argv array elements are as follows: 0: /usr/local/bin/node 1: / Users/MJR/work/node/process - the args. Js 2:1 3 parameters: parameter 2 4:3 parametersCopy the code