{"action":"created","issue":{"url":"https://api.github.com/repos/less/less.js/issues/2547","labels_url":"https://api.github.com/repos/less/less.js/issues/2547/labels{/name}","comments_url":"https://api.github.com/repos/less/less.js/issues/2547/comments","events_url":"https://api.github.com/repos/less/less.js/issues/2547/events","html_url":"https://github.com/less/less.js/issues/2547","id":67608666,"number":2547,"title":"@import (reference) and @media","user":{"login":"SebastienDaniel","id":445482,"avatar_url":"https://avatars.githubusercontent.com/u/445482?v=3","gravatar_id":"","url":"https://api.github.com/users/SebastienDaniel","html_url":"https://github.com/SebastienDaniel","followers_url":"https://api.github.com/users/SebastienDaniel/followers","following_url":"https://api.github.com/users/SebastienDaniel/following{/other_user}","gists_url":"https://api.github.com/users/SebastienDaniel/gists{/gist_id}","starred_url":"https://api.github.com/users/SebastienDaniel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SebastienDaniel/subscriptions","organizations_url":"https://api.github.com/users/SebastienDaniel/orgs","repos_url":"https://api.github.com/users/SebastienDaniel/repos","events_url":"https://api.github.com/users/SebastienDaniel/events{/privacy}","received_events_url":"https://api.github.com/users/SebastienDaniel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-10T14:31:55Z","updated_at":"2015-04-10T15:02:08Z","closed_at":null,"body":"Using Grunt-contrib-less (1.0.1)\r\n\r\nWhen importing a .less file containing @media queries, the styles within @media are imported even if the import directive is set to (reference), below is an example:\r\n\r\nimported.less\r\n-----------------\r\n```\r\n@someColor: #121311;\r\n\r\nh1 {\r\n  color: @someColor;\r\n}\r\n\r\n@media (min-width: 600px) {\r\n  h2 {\r\n    color: #000;\r\n  }\r\n}\r\n```\r\n\r\nimporter.less\r\n----------------\r\n```\r\n@import (reference) \"imported.less\";\r\n```\r\nwill output:\r\n```\r\n@media (min-width: 600px) {\r\n  h2 {\r\n    color: #000;\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/less/less.js/issues/comments/91585039","html_url":"https://github.com/less/less.js/issues/2547#issuecomment-91585039","issue_url":"https://api.github.com/repos/less/less.js/issues/2547","id":91585039,"user":{"login":"seven-phases-max","id":5304376,"avatar_url":"https://avatars.githubusercontent.com/u/5304376?v=3","gravatar_id":"","url":"https://api.github.com/users/seven-phases-max","html_url":"https://github.com/seven-phases-max","followers_url":"https://api.github.com/users/seven-phases-max/followers","following_url":"https://api.github.com/users/seven-phases-max/following{/other_user}","gists_url":"https://api.github.com/users/seven-phases-max/gists{/gist_id}","starred_url":"https://api.github.com/users/seven-phases-max/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seven-phases-max/subscriptions","organizations_url":"https://api.github.com/users/seven-phases-max/orgs","repos_url":"https://api.github.com/users/seven-phases-max/repos","events_url":"https://api.github.com/users/seven-phases-max/events{/privacy}","received_events_url":"https://api.github.com/users/seven-phases-max/received_events","type":"User","site_admin":false},"created_at":"2015-04-10T15:02:08Z","updated_at":"2015-04-10T15:02:08Z","body":"I can't reproduce this with either Less `2.4.0` or `2.5.0` (`grunt-contrib-less` `1.0.1` and `1.0.0` respectively)... Are you sure this minimal snippet is what that fails? (There're similar `reference` issues (e.g. #1968 + a few more), but the code as above should work fine)."}}