Grunt - resolving non-string (eg array) templates

后端 未结 4 828
半阙折子戏
半阙折子戏 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:12

    Have you tried:

    copy: {
      staticWeb: {
        src: '<%= grunt.regarde.changed.split(",") %>',
        dest: 'someDir'
      }
    }
    

提交回复
热议问题