Gruntjs 警告:无法写入";目的地/全部;文件(错误代码:EISDIR)

Gruntjs 警告:无法写入";目的地/全部;文件(错误代码:EISDIR),gruntjs,Gruntjs,我得到一个警告:“htmlrefs试图完成其任务时,无法写入“dest/full/”文件(错误代码:EISDIR)” htmlrefs: { dist: { /** @required - string including grunt glob variables */ src: 'src/*.html', /** @optional - string directory name*/

我得到一个警告:“htmlrefs试图完成其任务时,无法写入“dest/full/”文件(错误代码:EISDIR)”

htmlrefs: {
        dist: {
            /** @required  - string including grunt glob variables */
            src: 'src/*.html',
            /** @optional  - string directory name*/
            dest: 'dest/full/',
            options: {
            /** @optional  - references external files to be included */
            /*
                includes: {
                    analytics: './ga.inc' // in this case it's google analytics (see sample below)
                },
                */
            /** any other parameter included on the options will be passed for template evaluation */
                buildNumber: 1
            }
        }
    },
当然,我没有新的文件。
谢谢。

我不知道您是否明白了,但我很确定您需要在“dist”对象中添加“expand:true”。我不知道为什么它被遗漏在文档中。试试看

htmlrefs: {
    dist: {
        expand: true,
        src: 'src/*.html',
        dest: 'dest/full/',
        options: {
            includes: {
                analytics: './ga.inc'
            },
            buildNumber: 1
        }
    }
},

是的,它解决了这个问题。谢谢