gulp build step

1.yarn init -y initialization -------> file generated package.json

 

2.yarn add gulp ------> file generated node_modules

3. New gulpfile.js file

  Gulp defined task in the new version which has the following syntax

function a() {
  return console.log("abc");
}
 exports.default = series(a)

  Execution gulp results abc, but if directly gulp a is not performed. That has become a private property, if you want to perform, you must export a = a, then calls

  series is a serial, parallel performed in parallel

4. Create a directory

 

Guess you like

Origin www.cnblogs.com/amazingli/p/11028281.html