Grunt插件:Cachebreaker“无法读取未定义的属性'路径'

时间:2015-10-25 10:56:05

标签: javascript gruntjs

嘿大家我正在尝试将“grunt-cache-breaker”(https://www.npmjs.com/package/grunt-cache-breaker)添加到我的gruntsetup中。然而,这是我遇到问题的第一个插件。

我的构建工作正常,直到尝试执行此部分:

    cachebreaker: {
        addversions: {
            options: {
                match: ['*.{css,js}'],
                replacement: 'md5'
            },
            expand: true,
            cwd: '_output/',
            src: '*.html',
            dest: '_output/'
        },
    },

然后我在我的CMD中得到这个部分

Running "cachebreaker:addversions" (cachebreaker) task Warning: Cannot read property 'path' of undefined Use --force to continue. Aborted due to warnings.

欢迎任何想法/建议!谢谢! :)

0 个答案:

没有答案