Closed benplum closed 10 years ago
Can you not achieve this by simply specifying the source and destination directory to be the same?
I tried that before forking, it creates a sub directory inside the source directory:
includereplace: {
all: {
options: {
prefix: '@',
globals: '<%= pkg.vars %>'
},
dest: 'js/',
src: 'js/*.js'
}
}
Creates:
js/js/site.js
I'm open to other implementations.
Could you do something like:
includereplace: {
all: {
options: {
prefix: '@',
globals: '<%= pkg.vars %>'
},
dest: 'js/',
src: '*.js',
expand: true,
cwd: 'js/'
}
}
See http://gruntjs.com/configuring-tasks#building-the-files-object-dynamically for more info
It does indeed work, I thought I had tried that but must have been mistaken. Anyway, thanks for the great plugin!
Adds the ability to replace the original files. Useful when replacing strings / files in place.