javascript - Concat a single file to every file in a directory using grunt -


using grunt, want concat 1 file of files in build directory. purpose of doing append (or potentially prepend) ie specific css files build css file.

to task this:

build/   file1.css   file2.css   file3.css 

and create this:

build/   file1.css   file1.ie.css   file2.css   file2.ie.css   file3.css   file3.ie.css 

i thought expand option might looking can't figure out how want.

try banner option in grunt-contrib-concat:

concat: {   dist: {     options: {       banner: '/* ie specific things here */',     },     expand: true,     cwd: 'build/',     ext: '.ie.css',     src: ['**/*.css'],     dest: 'build/',   }, }, 

Comments