Recently, there is a need to compile less files under different projects and store them in CSS folders under corresponding projects. Therefore, when writing the task less, you need to write the path of gulp.dest () into the corresponding css folder of the compiled less file. But the problem is that the path calculation of gulp.dest () is always wrong.
Now I’d like to ask you to tell me how the path of gulp.dest () is calculated and the parameters inside.
The apis of gulpjs are attached.
Some commonly used functions can be packaged by gulp-2b.gulp-2bThe gulp cooperation case can refer to the implementation in the example directory of the project.