-
Notifications
You must be signed in to change notification settings - Fork 103
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
Question: Is it possible to make template urls relative? #153
Comments
This issue is not there in gulp 3.9.1 |
This is because gulp 4 uses vinyl 2.0 which normalizes internal path records, breaking the url building logic. Here is the workaround I am using. I'm working on a PR to address this.
|
Reopening due to breaking change with Gulp 3 after fixing this for Gulp 4 in 2.2.4. The code has since been reverted and 2.2.5 was published to reestablish status quo prior to this fix. |
The transformUrl solution does the job for now |
I'm working on getting access to a Mac so I can replicate and address the regression with 2.2.4 and find an alternative solution. In the meantime, we have |
the first attempt workaround works find on unix base system however, my team mate here is running on Windows so guess what? So here my workaround update:
|
Depending on how this issue progresses, it might be worthwhile expanding the Readme for specific gulp and OS combinations. What are your thoughts? |
This works around a problem introduced by gulp 4 / vinyl 2: miickel/gulp-angular-templatecache#153
This works around a problem introduced by gulp 4 / vinyl 2: miickel/gulp-angular-templatecache#153
i am also getting the same issue . Is there any work around for this to remove the Leading slash added to filenames |
It's not clear to me from the docs how to do this (other than a custom function for
transformUrl
). I was very surprised this isn't the default, as that is the default for the grunt version of this plugin (I'm in the process of migrating some code from grunt to gulp).Specifically, I would've expected something like:
but instead I'm getting
The text was updated successfully, but these errors were encountered: