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
grunt.regarde.changed
Have you tried:
copy: { staticWeb: { src: '<%= grunt.regarde.changed.split(",") %>', dest: 'someDir' } }