【发布时间】:2012-12-14 12:10:13
【问题描述】:
我正在为一个项目使用 yeoman。
基本上它工作正常,但在构建过程中我想将我的图像文件夹移动到其他地方。
所以我加载了grunt-contrib-copy 任务,它可以让我这样做。但不幸的是,这与 yeoman 内置的复制任务相冲突。
有没有办法在我的Gruntfile.js 中为grunt-contrib-copy 设置别名,以便我可以同时使用它们?
grunt.loadNpmTasks('grunt-contrib-copy');
//Here I need to use "copy" again but not referencing the yeoman task but the grunt-contrib-copy task.
grunt.registerTask('build','intro clean coffee compass mkdirs concat css min replace copy time');
【问题讨论】: