Skip to content
This repository was archived by the owner on Jan 9, 2019. It is now read-only.

Fix for http import in less#57

Closed
pvanassen wants to merge 4 commits intomarceloverdijk:masterfrom
pvanassen:http-import-branch
Closed

Fix for http import in less#57
pvanassen wants to merge 4 commits intomarceloverdijk:masterfrom
pvanassen:http-import-branch

Conversation

@pvanassen
Copy link

There are two issues in the original code:

  1. less.modules.path.dirname(href) is mangling http(s) urls by removing extra /
  2. http(s) is not seen as a absolute url so the current dir is prepended.

I don't really like the way I solved it but it's the best I can with the Javascript knowledge I have. The sollution is hopefully clear for someone to make a propper fix.

@pvanassen pvanassen closed this Apr 19, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant