警告:无法写入“dest/full/”文件(错误代码:EISDIR)

3

我收到了一个警告:"无法写入“dest/full/”文件(错误代码:EISDIR)",这是在htmlrefs试图完成其任务时发生的。

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
            }
        }
    },

当然,我没有新文件。 谢谢。
1个回答

14

我不知道你是否发现了,但我相当确定你需要在“dist”对象中添加“expand: true”。我不知道为什么它没有出现在文档中。试试吧。

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

是的,它解决了问题。谢谢! - ken

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接