Grunt的模块grunt-contrib-coffee为每个文件创建子文件夹

时间:2015-08-17 09:52:06

标签: node.js gruntjs npm grunt-contrib-concat

我的问题是主题。我有这个模块的以下配置:

grunt.initConfig({
    coffee: {
        options: {
            bare: true
        },
        scripts: {
            expand: true,
            flatten: true,
            cwd: 'coffee/',
            src: ['*.coffee'],
            dest: 'js/',
            ext: '.js'
        }
    }
});

编译后,Grunt为每个输出js文件创建具有相同目录名的子文件夹,而不是将所有输出文件放在单个目录“js /”中。抱歉我的英语不好,谢谢你的帮助。

1 个答案:

答案 0 :(得分:0)

抱歉,这是我的错误。配置是对的。问题已经结束。