{"action":"opened","issue":{"url":"https://api.github.com/repos/gruntjs/grunt-contrib-less/issues/263","labels_url":"https://api.github.com/repos/gruntjs/grunt-contrib-less/issues/263/labels{/name}","comments_url":"https://api.github.com/repos/gruntjs/grunt-contrib-less/issues/263/comments","events_url":"https://api.github.com/repos/gruntjs/grunt-contrib-less/issues/263/events","html_url":"https://github.com/gruntjs/grunt-contrib-less/issues/263","id":64371110,"number":263,"title":"banner not placed at top of file when using @import","user":{"login":"boneskull","id":924465,"avatar_url":"https://avatars.githubusercontent.com/u/924465?v=3","gravatar_id":"","url":"https://api.github.com/users/boneskull","html_url":"https://github.com/boneskull","followers_url":"https://api.github.com/users/boneskull/followers","following_url":"https://api.github.com/users/boneskull/following{/other_user}","gists_url":"https://api.github.com/users/boneskull/gists{/gist_id}","starred_url":"https://api.github.com/users/boneskull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boneskull/subscriptions","organizations_url":"https://api.github.com/users/boneskull/orgs","repos_url":"https://api.github.com/users/boneskull/repos","events_url":"https://api.github.com/users/boneskull/events{/privacy}","received_events_url":"https://api.github.com/users/boneskull/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-25T20:58:19Z","updated_at":"2015-03-25T20:58:19Z","closed_at":null,"body":"`@import` is (rightly) being treated as a special case: this statement will appear as the first line in the generated CSS file.\r\n\r\nHowever, if a `banner` is specified, it's inserted even before that.\r\n\r\nBut as I understand, `@import` needn't come before *any* other lines in the `.css` file; it must simply come before other styles.  \r\n\r\n#### Example\r\n\r\nGiven `.less`:\r\n\r\n```css\r\n@import url('//fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,700');\r\nbody {\r\n  color: red;\r\n}\r\n```\r\n\r\nAnd `banner` option:\r\n\r\n```javascript\r\n\"/* it's a banner */\"\r\n```\r\n\r\nThe resulting `.css` file will look like:\r\n\r\n```css\r\n@import url('//fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,700');\r\n/* it's a banner */\r\nbody {\r\n  color: red;\r\n}\r\n```\r\n\r\nThis happens regardless of whether `compress` is set."}}