{"action":"created","issue":{"url":"https://api.github.com/repos/yoniholmes/grunt-text-replace/issues/25","labels_url":"https://api.github.com/repos/yoniholmes/grunt-text-replace/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/yoniholmes/grunt-text-replace/issues/25/comments","events_url":"https://api.github.com/repos/yoniholmes/grunt-text-replace/issues/25/events","html_url":"https://github.com/yoniholmes/grunt-text-replace/issues/25","id":47345004,"number":25,"title":"Add support for an expand option?","user":{"login":"micahblu","id":441559,"avatar_url":"https://avatars.githubusercontent.com/u/441559?v=3","gravatar_id":"","url":"https://api.github.com/users/micahblu","html_url":"https://github.com/micahblu","followers_url":"https://api.github.com/users/micahblu/followers","following_url":"https://api.github.com/users/micahblu/following{/other_user}","gists_url":"https://api.github.com/users/micahblu/gists{/gist_id}","starred_url":"https://api.github.com/users/micahblu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micahblu/subscriptions","organizations_url":"https://api.github.com/users/micahblu/orgs","repos_url":"https://api.github.com/users/micahblu/repos","events_url":"https://api.github.com/users/micahblu/events{/privacy}","received_events_url":"https://api.github.com/users/micahblu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-10-30T23:32:17Z","updated_at":"2015-01-07T02:17:23Z","closed_at":null,"body":"It be very nice to maintain the directory structure from src wildcard matches.\r\n\r\nFor example let's say I have:\r\n\r\n```javascript\r\nreplace: {\r\n  html: {\r\n    src: ['src/**/*.html'],\r\n    dest: 'dist/'\r\n    // the rest\r\n  }\r\n}\r\n```\r\nIn this case the dist gets a flattened version of the src files, losing directories and possibly overwriting files, for example a directory with index.html would overwrite the root index.html. It'd be nice to have an expand option that would build the directories as needed."},"comment":{"url":"https://api.github.com/repos/yoniholmes/grunt-text-replace/issues/comments/68969708","html_url":"https://github.com/yoniholmes/grunt-text-replace/issues/25#issuecomment-68969708","issue_url":"https://api.github.com/repos/yoniholmes/grunt-text-replace/issues/25","id":68969708,"user":{"login":"fantapop","id":6658984,"avatar_url":"https://avatars.githubusercontent.com/u/6658984?v=3","gravatar_id":"","url":"https://api.github.com/users/fantapop","html_url":"https://github.com/fantapop","followers_url":"https://api.github.com/users/fantapop/followers","following_url":"https://api.github.com/users/fantapop/following{/other_user}","gists_url":"https://api.github.com/users/fantapop/gists{/gist_id}","starred_url":"https://api.github.com/users/fantapop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fantapop/subscriptions","organizations_url":"https://api.github.com/users/fantapop/orgs","repos_url":"https://api.github.com/users/fantapop/repos","events_url":"https://api.github.com/users/fantapop/events{/privacy}","received_events_url":"https://api.github.com/users/fantapop/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T02:17:23Z","updated_at":"2015-01-07T02:17:23Z","body":"I agree this would be nice.  A work around would be to copy the tree to your new location and then run the replace on the files in place."}}