在 IntelliJ IDEA 中为 Grunt 任务设置自定义 config.json 位置
Setup custom config.json location for Grunt tasks in IntelliJ IDEA
我想在我的 IntelliJ IDEA 中 运行 我的 G运行t 任务(通过 GruntFile.js 文件)。但是,config.json 位于其他地方,导致 GruntFile.js 的加载崩溃。
有没有办法设置–-config.json参数?或者有解决办法吗?貌似只能配置环境变量和节点选项了
我们配置了自定义环境变量。效果很好。
grunt.option('config.json') || process.env.BS_CONFIG_JSON|| 'build/config.json'
我想在我的 IntelliJ IDEA 中 运行 我的 G运行t 任务(通过 GruntFile.js 文件)。但是,config.json 位于其他地方,导致 GruntFile.js 的加载崩溃。
有没有办法设置–-config.json参数?或者有解决办法吗?貌似只能配置环境变量和节点选项了
我们配置了自定义环境变量。效果很好。
grunt.option('config.json') || process.env.BS_CONFIG_JSON|| 'build/config.json'