-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
@import directive in an already @import'd file uses full url with hash as base #134
Comments
it should probably work to just change the url like this when it's declared: |
Did it simpler:
Still would be nice to have it in the official build. |
yours is simpler... but needs to account for '?' in the url which will have the same problem as '#' ;)
just fork, modify, and add a pull request. sometimes it takes a while for a response but @cloudhead eventually responds. |
I realized that after I posted it. Shall fork. |
…nd url portions thereafter as part of the base url.
…rl portions thereafter as part of the base url.
The pull request to fix this bug by @dbergey was committed.. therefore this particular bug should be fixed.. ? Any disagreements? |
My page's url looks like this, with a hash in the middle: http://mysite.com/#/controller/function/
In a <style> tag on the main page, I have (which works fine):
Inside main.less is another @import without a path:
The browser requests it as "http://mysite.com/#/controller/function/include.less", disregarding the hash. I have discovered that if I comment out the block:
...it works, and I have worked around it for now in Safari by adding a second condition thusly:
...but that is of course not a good long-term solution, and probably doesn't fix the issue in IE.
Being unfamiliar with the less.js codebase, I'm not sure what or where the problem is. Help?
The text was updated successfully, but these errors were encountered: