咕unt丑陋的子任务不起作用

时间:2018-07-13 16:47:26

标签: gruntjs grunt-contrib-uglify

我怀疑在咕gr咕ify咕咕咕叫。主要任务正常执行,但是到达子任务后不起作用,提到的目录和文件存在但不起作用,我在做什么错了?

终端错误:运行“ uglify:sub_task”(丑化)任务

  

未创建文件。

 uglify: {
    options: {
        banner: "/*! <%= pkg.name %> 3.0.0 | meu sistema - abcdef.com | <%= grunt.template.today("yyyy-mm-dd") %> */\n"
    },
    build: {
        files: [{
            expand: true,
            src: "**/*.js", 
            dest: "dist/js/",
            cwd: "js/",
            ext: ".min.js"
        }]
    },

    sub_task: {
         files: [{
            expand: true,
            src: "subdomain/js/*.js", 
            dest: "subdomain/dist/js/",
            cwd: "dist/js/",
            ext: ".min.js"
        }]
    }
}


grunt.loadNpmTasks("grunt-contrib-uglify");

grunt.registerTask("sub_task", ["uglify:sub_task"])

0 个答案:

没有答案