tactivos / grunt-cdn

79 stars 53 forks source link

Glob support #59

Closed dmitrybelyakov closed 9 years ago

dmitrybelyakov commented 9 years ago

Hello!

I'm trying to use glob patterns in my html sources but the task just hangs forever with any of these:

./project/templates/{,*/}.html
./project/templates/{,**/}.html

If grunt is run in verbose mode the following get displayed:

Running "cdn:dist" (cdn) task
Files: [no src] -> ./project/templates/
Options: cdn="http://cdn.cloudfront.net/container/", flatten=false, supportedTypes={"html":"html"}

It would be helpful if we could crawl deeper into templates folder to replace <img> tags beyond the top-level directory.

dmitrybelyakov commented 9 years ago

Figured it out. Sorry to bother :)

The correct syntax is this:

./project/templates/{,*/}*.html
./project/templates/{,**/}*.html
dmitrybelyakov commented 9 years ago

Yet, reopening as the files are successfully discovered and processed, but then the output files are all dumped into a single directory (no matter what directory they were in originally).

dmitrybelyakov commented 9 years ago

I will now close this one and do a PR instead