jonkemp / useref

Parse build blocks in HTML files to replace references
MIT License
51 stars 13 forks source link

useref doesn't respect spaces in the path for the asset #2

Closed jonkemp closed 8 years ago

jonkemp commented 8 years ago

https://github.com/jonkemp/gulp-useref/issues/155

jonkemp commented 8 years ago

Not planning on adding this feature at this time. The reason is the current pattern of the build block comment doesn't allow for it. Check out the README to see what I mean.

https://github.com/jonkemp/useref/blob/master/README.md

The top comment where it gets the build path from looks like this.

<!-- build:<type>(alternate search path) <path> <parameters> -->

The problem is that the regex looks for a space to tell where the path ends and the parameters begin. So a space in the path is a problem because the regex sees it as a stop and that is why it is not working currently.

As I do not see an easy way around this, it will not be supported until that changes somehow. Sorry for any inconvenience. Thanks.