{"action":"created","issue":{"url":"https://api.github.com/repos/less/less.js/issues/2771","labels_url":"https://api.github.com/repos/less/less.js/issues/2771/labels{/name}","comments_url":"https://api.github.com/repos/less/less.js/issues/2771/comments","events_url":"https://api.github.com/repos/less/less.js/issues/2771/events","html_url":"https://github.com/less/less.js/issues/2771","id":126202707,"number":2771,"title":"Defining a mixin if not already defined (default mixin)","user":{"login":"Giwayume","id":4075314,"avatar_url":"https://avatars.githubusercontent.com/u/4075314?v=3","gravatar_id":"","url":"https://api.github.com/users/Giwayume","html_url":"https://github.com/Giwayume","followers_url":"https://api.github.com/users/Giwayume/followers","following_url":"https://api.github.com/users/Giwayume/following{/other_user}","gists_url":"https://api.github.com/users/Giwayume/gists{/gist_id}","starred_url":"https://api.github.com/users/Giwayume/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Giwayume/subscriptions","organizations_url":"https://api.github.com/users/Giwayume/orgs","repos_url":"https://api.github.com/users/Giwayume/repos","events_url":"https://api.github.com/users/Giwayume/events{/privacy}","received_events_url":"https://api.github.com/users/Giwayume/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-12T15:22:10Z","updated_at":"2016-01-12T19:28:10Z","closed_at":"2016-01-12T18:04:19Z","body":"I'm looking to add overridable mixins in my less library, however I don't see a way to do this since they're not lazy loaded like variables are.\r\n\r\nFor example\r\n```\r\n.overrides () {\r\n  // stuff\r\n}\r\n@import \"library.less\"\r\n```"},"comment":{"url":"https://api.github.com/repos/less/less.js/issues/comments/171025229","html_url":"https://github.com/less/less.js/issues/2771#issuecomment-171025229","issue_url":"https://api.github.com/repos/less/less.js/issues/2771","id":171025229,"user":{"login":"Giwayume","id":4075314,"avatar_url":"https://avatars.githubusercontent.com/u/4075314?v=3","gravatar_id":"","url":"https://api.github.com/users/Giwayume","html_url":"https://github.com/Giwayume","followers_url":"https://api.github.com/users/Giwayume/followers","following_url":"https://api.github.com/users/Giwayume/following{/other_user}","gists_url":"https://api.github.com/users/Giwayume/gists{/gist_id}","starred_url":"https://api.github.com/users/Giwayume/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Giwayume/subscriptions","organizations_url":"https://api.github.com/users/Giwayume/orgs","repos_url":"https://api.github.com/users/Giwayume/repos","events_url":"https://api.github.com/users/Giwayume/events{/privacy}","received_events_url":"https://api.github.com/users/Giwayume/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T19:28:10Z","updated_at":"2016-01-12T19:28:10Z","body":"I don't want to keep opening issues for what may be dumb questions, but it seems when using variables with imports it takes the first variable it gets and ignores the override.\r\n\r\nmain.less\r\n```\r\n@import \"imported.less\";\r\n@myPath \"desired/path\";\r\n```\r\nimported.less\r\n```\r\n@myPath \"default/path\";\r\n@import \"@{myPath}\";\r\n```\r\n\r\nIn this example, the second import ends up being \"default/path\". But If I take out the `@myPath` declaration from `imported.less` it imports \"desired/path\" instead. "}}