Grunt - resolving non-string (eg array) templates

后端 未结 4 834
半阙折子戏
半阙折子戏 2021-01-04 22:43

Say I have a variable in my grunt config with an array as a value. A real world example is grunt.regarde.changed from the grunt-regarde plugin, which lists all

4条回答
  •  死守一世寂寞
    2021-01-04 23:11

    // assuming that regarde is a grunt plugin (haven't used—link is broken)
    
    copy: {
      staticWeb: {
        src: '<% regarde.changed %>',
        dest: 'someDir'
      }
    }
    

    http://gruntjs.com/api/grunt.config#grunt.config.getraw

    #ezpz

提交回复
热议问题