Option to Use Relative Path Rather Than Absolute
See original GitHub issueI haven’t been able to find a way to use gulp inject
to inject paths relative to the html file.
Issue Analytics
- State:
- Created 9 years ago
- Comments:20 (10 by maintainers)
Top Results From Across the Web
Absolute vs Relative Path - Which Should You Be Using?
"Using absolute links for images allows you to assert ownership in the image search results, which reduces the likelihood of duplicate content ...
Read more >What are the differences between absolute and relative paths?
An absolute path makes no assumptions about your current location in relation to the location of the file or directory it's describing. An ......
Read more >Absolute vs. Relative Paths/Links - CoffeeCup Software
The first difference you'll notice between the two different types of links is that absolute paths always include the domain name of the...
Read more >Should I Use Relative or Absolute URLs? - SEOquake
The main difference between absolute and relative paths is that absolute URLs always include the domain name of the site with http://www.
Read more >Can I use relative paths instead of absolute paths? – nTopology
If both files are to be stored in the same directory, then the entire Path input is not needed. For example, the [File_Name].[Extension]...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
try changing the following line:
To:
That should probably fix it. BTW - I think you are using absolute paths in your
path.js.compile
. You will probably do better with using relative file paths there, and therefore need to ignore a smaller path.For me: I usually output everything to
build/
so that I use the option `ignorePath: ‘build/’👀 Flashback!! 😉