I need to replace a Text in a directory tree and copy to another folder. I'm using grunt text-replace plugin and Glob npm. you could see the config next:
replace: {
replace2: {
src: 'js/app/circo/**/*.js',
dest: 'js/app/circo2/',
replacements: [{
from: 'app/payasos',
to: 'app/funambulistas'
}
]
}
},
This settings replace the text and copy all the file into the js/app/circo2/ folder and the tree disappear.
I try to change the dest to:
dest: 'js/app/circo2/**',
but this show this error:
Running "replace:replace2" (replace) task Warning: Unable to read "js/app/circo/" file (Error code: EISDIR). Use --force to continue.
Thanks.