문제 설명
IntelliJ IDEA에서 Grunt 작업에 대한 사용자 지정 config.json 위치 설정 (Setup custom config.json location for Grunt tasks in IntelliJ IDEA)
내 IntelliJ IDEA에서 내 Grunt 작업(GruntFile.js 파일을 통해)을 실행하고 싶습니다. 그러나 config.json이 다른 곳에 위치하여 GruntFile.js의 로드가 중단됩니다.
‑‑config.json 매개변수를 설정할 수 있는 방법이 있습니까? 아니면 해결 방법이 있습니까? 환경 변수와 노드 옵션만 설정할 수 있는 것 같습니다.
참조 솔루션
방법 1:
We configured a custom environment variable. It works beautifully.
grunt.option('config.json') || process.env.BS_CONFIG_JSON|| 'build/config.json'
(by Hans Leautaud、Hans Leautaud)