【发布时间】:2015-06-13 08:53:44
【问题描述】:
我在 AngularJS 项目中使用grunt-contrib-coffee,我正在尝试根据 grunt 的目标设置配置选项。我有以下配置文件(使用grunt-load-options):
'use strict';
module.exports = function(grunt) {
return {
stage: {
glob_to_multiple: {
expand: true,
nonull: true,
cwd: 'src/js/',
src: ['*.coffee', 'config/stage.coffee'],
dest: '.tmp/js/',
ext: '.js'
}
}
};
};
但是当我使用grunt coffee:stage 执行任务时,没有文件被复制。有什么想法吗?
Running "coffee:stage" (coffee) task
>> 0 files created.
Done, without errors.
谢谢!
【问题讨论】:
-
您确定配置文件的名称正确吗?在这种情况下
coffee.js? -
运气好吗?
-
是的,正确命名。
标签: coffeescript gruntjs grunt-contrib-coffee