-
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
Importing remote urls broken with v3.0.1 #3188
Comments
I think this might be related to the fact that Less no longer auto-switches to a "css" import (preserving the Try |
Awesome @matthew-dean that did help indeed. Thx a lot! |
@matthew-dean Is there a way to tell the compiler to use https by default when resolving urls from imports? e.g. when I use
When I put this to a page that is loaded via HTTPS, I get a 'mixed content' error and http requests are blocker by browser. So now I have to update all the imports to use |
No. More over the very idea of importing |
@dmitriy-drenkalyuk Why not just write: @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700); ? |
@matthew-dean This is what I did eventually, was just looking for an option to do it via config, so that we don't need to search and update all the places where we use such imports. |
With less v2.7.3 (using webpack v3.1.0 and less-loader v4.1.0) I could import remote fonts like this in my main.less file:
@import url('https://fonts.googleapis.com/css?family=Nunito');
With less v3.0.1 using the same config and dependencies I now only get this error when trying to build:
The text was updated successfully, but these errors were encountered: