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

banner not placed at top of file when using @import #263

Open
boneskull opened this issue Mar 25, 2015 · 1 comment
Open

banner not placed at top of file when using @import #263

boneskull opened this issue Mar 25, 2015 · 1 comment

Comments

@boneskull
Copy link

@import is (rightly) being treated as a special case: this statement will appear as the first line in the generated CSS file.

However, if a banner is specified, it's inserted even before that.

But as I understand, @import needn't come before any other lines in the .css file; it must simply come before other styles.

Example

Given .less:

@import url('//fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,700');
body {
  color: red;
}

And banner option:

"/* it's a banner */"

The resulting .css file will look like:

@import url('//fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,700');
/* it's a banner */
body {
  color: red;
}

This happens regardless of whether compress is set.

@XhmikosR
Copy link
Member

XhmikosR commented Aug 2, 2016

Does this happen with v1.4.0 and/or less itself?

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