How to pass in package.json array to grunt.js

后端 未结 3 1916
深忆病人
深忆病人 2021-01-11 12:53

is there a way to pass in an array to grunt.js from the package.json file? I\'ve tried a few different ways and none of them seem to work. I currently have:

         


        
3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-11 12:57

    grunt.initConfig({
      lint: grunt.file.readJSON('package.json').lint,
    });
    

提交回复
热议问题