2013-08-24 3 views
4

어떤 대상을 찾을 문제 내가 다음 파일을 작성했습니다

var _path = require('path'); 

module.exports = function (grunt) { 
    var config = { 
    }; 


    function addProject(project) { 
     grunt.helper('addProject', config, project); 
    } 

    addProject({ 
     name:'mytest', 
     type:'module', 
     sourcePath:'../source', 
     outputPath:'../test/', 
     version : grunt.option('ver')||'0.1.0.0' 
    }); 

    grunt.registerTask('default', 'module closureCompiler'); 
    grunt.initConfig(config); 
}; 

내가 내 박쥐 파일 모듈 closureCompiler의 동기화 명령을 사용하여 실행

, 그것은

Running "sync" task 
>> No "sync" targets found. 
<WARN> Task "sync" failed. Use --force 
를 말하는 오류를 제공 grunt.js을 투덜 없습니다

이것은 무엇을 의미합니까?

grunt.initConfig({ 
    sync: { 
     target: {} // <= needs to be defined 
    } 
}); 
+0

당신은 정확히 무엇 매개 변수를 전달하는 : – JJJ

+0

ok tella howaand 어디서 동기화 작업을 구성해야합니까? – user1224036

+1

https://github.com/tomusdrw/grunt-sync/blob/master/readme.md – JJJ

답변

5

오류 메시지가 당신은 sync 작업 대상을 정의 할 필요가 지적 하듯이

? 동기화 작업을 구성하지 않았습니다.
관련 문제