标签: grunt-contrib-jade

咕噜玉错误

每当我运行咕噜翡翠时,我都会收到错误:

Warning: pattern.indexOf is not a function Use --force to continue.
Run Code Online (Sandbox Code Playgroud)

现在这是我的玉任务:

    jade: {
        options: {
            pretty: true
        },
        all: {
            files: {
                expand:true,
                cwd: 'src/static/jade',
                ext: "html",
                src: ['src/static/jade/**/*.jade', '!src/static/jade/_includes'],
                dest: 'build/'
            }
        }
    }
Run Code Online (Sandbox Code Playgroud)

所以基本上我正在尝试将jade文件src/static/jade(包括subdirs,除外_include)放入并build保存目录结构.我试过评论这expand条线,但它给了我:

 Warning: Unable to read "src/static/jade" file (Error code: EISDIR). Use --force to continue.
Run Code Online (Sandbox Code Playgroud)

也许我会以错误的方式解决这个问题.我该怎么解决这个问题?

javascript node.js gruntjs grunt-contrib-jade

5
推荐指数
1
解决办法
2720
查看次数

标签 统计

grunt-contrib-jade ×1

gruntjs ×1

javascript ×1

node.js ×1