简单的grunt复制任务无法正常工作

时间:2016-04-03 21:09:22

标签: gruntjs grunt-contrib-copy

有人可以帮助我,告诉我这里我做错了什么。我有以下grunt任务,我想将css文件从构建目录移动到我的项目的根目录。

module.exports = {
    copy: {
        main: {
            files: [{
                expand: true,
                cwd: "build/css/",
                src: "style.css",
                dest: "../"
            }]
        },
    },
}

当我运行grunt copy -v时,这就是说:

$ grunt copy -v
Initializing
Command-line options: --verbose

Reading "Gruntfile.js" Gruntfile...OK

Running tasks: copy

Running "copy" task

Running "copy:copy" (copy) task
Verifying property copy.copy exists in config...OK
File: [no files]
Options: encoding="utf8", processContent=false, processContentExclude=[], timestamp=false, mode=false


Done, without errors.

1 个答案:

答案 0 :(得分:0)

别担心,解决了。晚上太晚了...... :(

任务正在运行文件名,因此已删除 Map mp = new ConcurrentHashMap(); mp.put(1, "Hello"); ,现在可以正常运行。

copy