Question: Is there a way to build with relative paths?
See original GitHub issueBy default, Gridsome loads all assets from the absolute root of my site.
I can add pathPrefix
to move that to a subfolder (e.g. mysubfolder
), but all assets are still loaded from an absolute url: /mysubfolder/...
.
Is there a way to have Gridsome to load relative paths? (also all of Gridsome’s assets and css)?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:10 (1 by maintainers)
Top Results From Across the Web
How to deal with relative paths in out of source build?
I have a project which contains relative paths to some resource files, needed at runtime, which are located close to the source directory....
Read more >reactjs - Relative path in index.html after build - Stack Overflow
When I use "." or "./" I can see that all the paths now have a dot at the beginning, but it seems...
Read more >Absolute and Relative Paths - YouTube
This video is part of the Udacity course "Linux Command Line Basics". Watch the full course at https://www.udacity.com/course/ud595.
Read more >How to solve vue.js prod build assets relative path problem
I installed the Visual Studio Code and opened the project and looked into the folders and files. I compiled the project using the...
Read more >Relative and absolute paths, in the file system and on the web ...
If you don't supply the root, it means that your path is relative. The simplest example of relative path is just a file...
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
+1
Hi @OliPerraul Yes - I used another framework 😃
I am really bored, if basic functionality is ignored and they try to sell it as ‘feature’…
I like Gridsome pretty much, but I simply don’t have to fight for such a basic thing… -> I’m back, when it works… (if ever)