-
Notifications
You must be signed in to change notification settings - Fork 339
Build pattern regex doesn't support url path with space #512
Comments
@JackZhang1988 the problem is that the third group in the regexp, which is |
@JackZhang1988 can you test the branch in #516 to see if it fixes your use case. I don't know if it also related to your other issue #513 |
@JackZhang1988 see my comment in your other issue. |
@JackZhang1988 could you explain why you would want to have your path being variable ? I'm closing this issue as irrelevant. Feel free to come back with more explanations and reopen if needed. |
@stephanebachelier sorry for replaying so late, the variable for path used for static files' CDN path, usually we develop our project in local, this variable will be 'localhost', when our project release to internet, this variable will be the CDN path. i know there maybe other way to accomplish this, but when i join my team, it has used this way. |
@JackZhang1988 maybe you should use another plugin that will replace all the paths of the assets, but once usemin have processed your files. |
My build comment template in my html like this:
the staticBase variable is the DNSUrl i will render by grunt template, the first line
<!-- build:css <%- staticBase%>/css/index/index.css -->
, you can see there is a space before wordstaticBase
, but the usemin build pattern can't parse this pattern.I check the usemin rebuild pattern is
/<!--\s*build:(\w+)(?:\(([^\)]+)\))?\s*([^\s]+)\s*-->/
, it does't support build path with a space, when i remove the space beforestaticBase
word, it works fine.The text was updated successfully, but these errors were encountered: