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

@import "not-a-css" statement included in rendered css #2364

Closed
steven-pribilinskiy opened this issue Jan 3, 2015 · 4 comments
Closed

@import "not-a-css" statement included in rendered css #2364

steven-pribilinskiy opened this issue Jan 3, 2015 · 4 comments

Comments

@steven-pribilinskiy
Copy link

Whenever a trailing css is encountered by @import statement, the @import statement is included in the rendered css (and that leads to errors).

Examples:

@import "some-file-css";
@import "whatevercss";

Expected that a corresponding "some-file-css.less" and "whatevercss.less" files will be imported

@lukeapage
Copy link
Member

yes, its a bit unfortunate.

I know people have used

@import "fileonweb.php#css";

in order to get it to load as a css file, before we had import options.

The work-around is to use

@import (less) "filecss";

I think we should fix it and probably make it see css in url params.

@lukeapage
Copy link
Member

This is the common example

http://fonts.googleapis.com/css?family=Open+Sans

@steven-pribilinskiy
Copy link
Author

Didn't thought about those use-cases
Thanks!

@maxbrunsfeld
Copy link
Contributor

maxbrunsfeld commented Aug 23, 2016

Is it intended that @import "some-directory/css" produces a CSS import?

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

No branches or pull requests

3 participants