문제

Can't make working subtask in my gruntfile. My task:

uglify: {
  foo: {
    options: {             
    },
    dist: {
      files: {
        'test.min.js': [
            "test.js",
            "test2.js"
         ]
      }
    }
  }
}

Grunt log in console:

Running "uglify:foo" (uglify) task

Done, without errors

But not create file test.min.js. And everything working if I comment foo string subtask like //foo: {and //} How I can run subtasks ?

도움이 되었습니까?

해결책

Your task config is wrong. It should be:

uglify: {
  foo: {
    options: {             
    },
    files: {
      'test.min.js': [
          "test.js",
          "test2.js"
       ]
    }
  }
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top