Skip to content
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

use relative paths in sourcemap #149

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shish
Copy link

@shish shish commented Aug 18, 2023

Right now the source map generates filenames which are absolute paths on disk (/home/shish/project/blah.css), which the browser interprets as absolute paths relative to the web root (https://www.shish.io/home/shish/project/blah.css), which means that they will never be found (unless your web server is configured to serve the root of your hard drive)

Using relative paths seems like it should work in more cases, and also has the bonus of revealing a bit less about the internals of my server (../blah.css instead of /home/shish/project/blah.css)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant