{"action":"opened","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/5357","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/5357/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/5357/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/5357/events","html_url":"https://github.com/magento/magento2/issues/5357","id":162955084,"number":5357,"title":"2.1 Cannot refer to less files outside extension","user":{"login":"maderlock","id":630320,"avatar_url":"https://avatars.githubusercontent.com/u/630320?v=3","gravatar_id":"","url":"https://api.github.com/users/maderlock","html_url":"https://github.com/maderlock","followers_url":"https://api.github.com/users/maderlock/followers","following_url":"https://api.github.com/users/maderlock/following{/other_user}","gists_url":"https://api.github.com/users/maderlock/gists{/gist_id}","starred_url":"https://api.github.com/users/maderlock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maderlock/subscriptions","organizations_url":"https://api.github.com/users/maderlock/orgs","repos_url":"https://api.github.com/users/maderlock/repos","events_url":"https://api.github.com/users/maderlock/events{/privacy}","received_events_url":"https://api.github.com/users/maderlock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-29T15:26:25Z","updated_at":"2016-06-29T15:26:25Z","closed_at":null,"body":"Steps to reproduce\r\n--\r\n1. Install Magento 2.1.0\r\n2. Create module that has frontend less file\r\n3. Add import in that less file to \"source/lib/_lib.less\" or \"source/_theme.less\" so that theme variables can be used e.g. @primary__color\r\n\r\nExpected result\r\n--\r\n1. compiled css for extension (as in 2.0.7)\r\n2. ...\r\n\r\nActual result\r\n--\r\n1. Error on static deployment:\r\n```\r\n=== frontend -> Magento/blank -> en_GB ===\r\n..............................................................\r\n[Magento\\Framework\\View\\Asset\\ContentProcessorException]\r\n  Compilation from source:\r\n  frontend/Magento/blank/en_GB/My_Module/css/mystyling.less\r\n  Unable to get content for 'frontend/Magento/blank/en_GB/My_Module/css/source/_theme.less'\r\n```\r\n\r\nThere is the mechanism of using source/_extend.less, but that stops anyone using gulp so that's out. We could avoid these includes if we just hard-coded size, font and colors into our module, but that's not a very extensible approach. We just would like to be able to use this as we could in 2.0.7"}}
{"actor":{"display_login":"maderlock"}}