Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Glob support #59

Closed
dmitrybelyakov opened this issue Dec 11, 2014 · 3 comments
Closed

Glob support #59

dmitrybelyakov opened this issue Dec 11, 2014 · 3 comments

Comments

@dmitrybelyakov
Copy link

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
Copy link
Author

Figured it out. Sorry to bother :)

The correct syntax is this:

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

@dmitrybelyakov
Copy link
Author

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
Copy link
Author

I will now close this one and do a PR instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant