-
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 fails when filename is "css" (less thinks thats the extension) #2998
Comments
Yes, it seems to be a regression of one of early 2.0.x branches (before 2.x it worked as you expect). |
If I'm not mistaken the change was made to support imports like: @import "https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700"; that otherwise would result in a broken @import (css) "https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700"; |
So per above observation adding "NeedsDecision" label, as the trick is that it's not hard to guess that count of such "font" urls used out there vastly outnumbers the use-case of the initial post and then it's actually questionable if it's better to keep current behaviour and change the docs instead. |
Support for this very thing was added to 3.x. #2955 It could probably get merged into a 2.x release if important. |
So I'm closing as fixed in #2955. |
For example, parsing this:
CSS import is ignored and the line appears in the CSS result as
@import "syntax/css";
. (It's not resolved the import)This is fixed changing it to
@import "syntax/css.less";
.Documentation here: http://lesscss.org/features/#import-directives-feature-file-extensions
Says:
So it's clearly an issue failing to identify the extension for
syntax/css
(which issyntax/css.less
)The text was updated successfully, but these errors were encountered: