Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sql-server-2005/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Gulp 相对于动态确定的基本目录保存文件_Gulp - Fatal编程技术网

Gulp 相对于动态确定的基本目录保存文件

Gulp 相对于动态确定的基本目录保存文件,gulp,Gulp,gulpjs/gulp/issues/ 我的结构如下: |-->view/ `-->foo/ `-->bar/ `-->less/ |-->a.less |-->b.less `-->inner/ `-->c.less 我的process.cwd()是视图文件夹。我想要的输

gulpjs/gulp/issues/

我的结构如下:

|-->view/
    `-->foo/
        `-->bar/
            `-->less/
               |-->a.less
               |-->b.less
               `-->inner/
                   `-->c.less
我的
process.cwd()
视图
文件夹。我想要的输出是:

|-->view/
    `-->foo/
        `-->bar/
            |-->less/
            |  |-->a.less
            |  |-->b.less
            |  `-->inner/
            |      `-->c.less
            `-->css/
               |-->a.css
               |-->b.css
               `-->inner/
                   `-->c.css
我的
gulp.src()
看起来像这样:

gulp.task('lessc',函数(cb){
gulp.src(“***/less/***/less”)。
.管道(小于()
//…如何保存相对于动态确定的基本目录'bar'的文件?
});