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" in a comment causes the next lines to be skipped #264

Closed
d13r opened this issue Mar 24, 2014 · 4 comments
Closed

"@import" in a comment causes the next lines to be skipped #264

d13r opened this issue Mar 24, 2014 · 4 comments

Comments

@d13r
Copy link

d13r commented Mar 24, 2014

In v2.1.6, this file:

/*@import url(//fonts.googleapis.com/css?family=Raleway:400,700);*/
@import url(//fonts.googleapis.com/css?family=Raleway:400,500,700);

.a { color: red; }
.b { color: green; }

Is incorrectly minified to:

.b{color:green}

Removing the @import from the comment makes it work correctly.

/*@ import url(//fonts.googleapis.com/css?family=Raleway:400,700);*/
@import url(//fonts.googleapis.com/css?family=Raleway:400,500,700);

.a { color: red; }
.b { color: green; }

Is correctly minified to:

@import url(//fonts.googleapis.com/css?family=Raleway:400,500,700);.a{color:red}.b{color:green}
@d13r d13r changed the title "@import" in a comment causes the next line to be skipped "@import" in a comment causes the next lines to be skipped Mar 24, 2014
@GoalSmashers
Copy link
Contributor

@davejamesmiller Thanks for reporting - fix is coming!

@GoalSmashers
Copy link
Contributor

It's fixed in 2.1.7!

@d13r
Copy link
Author

d13r commented Mar 25, 2014

That's working - thanks for the quick fix!

@GoalSmashers
Copy link
Contributor

Sure, anytime 👍

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

No branches or pull requests

2 participants