Question: One file per each folder
Closed this issue · 1 comments
michal-novacek commented
Hello, thanks for providing the module for all of us. I need some help defining the files object:
files: {
"apps/APP_NAME/js/package/hbs/compiled.js": "apps/APP_NAME/js/package/hbs/.hbs"
}
I have multiple APP_NAME folders and would be really happy if I could make a /js/package/hbs/compiled.js for each of them with only the APP_NAME/js/package/hbs/.hbs templates compiled into it.
Can you advise how to do this? As far as I know, the ** will not work.
Cheers,
Mike
shama commented
Please see building the files object dynamically.
specifically the rename
property, here is an example: http://dontkry.com/posts/code/grunt-tricks.html#customize-file-output-rename