{"action":"created","issue":{"url":"https://api.github.com/repos/less/less-meta/issues/17","repository_url":"https://api.github.com/repos/less/less-meta","labels_url":"https://api.github.com/repos/less/less-meta/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/less/less-meta/issues/17/comments","events_url":"https://api.github.com/repos/less/less-meta/issues/17/events","html_url":"https://github.com/less/less-meta/issues/17","id":152029816,"number":17,"title":"Unification of plugin subsystems.","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},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":48,"created_at":"2016-04-30T13:17:07Z","updated_at":"2016-07-02T09:44:58Z","closed_at":null,"body":"As was already mentioned initially (and then in #10 and in various topics here and there), `@plugin` feature needs further improvements as its current implementation was just a temporary solution to get something in the release ASAP.\r\n\r\nSo the very first step for the unification would be to allow the `@plugin` directive to load both formats, i.e.:\r\n```less\r\n@plugin \"clean-css\";\r\n```\r\n* first try to load the \"standard\" format, i.e. `less-plugin-clean-css` (in the directories specified in the docs)\r\n* and only then try to load `clean-css.js` file (of the \"easy-functions\" format, in the directories of the compiled less project).\r\n\r\nContrary:\r\n```less\r\n@plugin \"clean-css.js\";\r\n```\r\nlooks directly for an \"easy-functions\" `clean-css.js` file.\r\n\r\n---\r\n\r\nAs also mentioned earlier, loading \"standard format\" plugins with `@plugin` directive is expected to have certain acceptable limitations/restrictions to work properly (e.g. no special scoping and the directive should appear *before* any code it may have an effect on (specifically for \"visitor\" plugins)).\r\n\r\n---\r\n\r\nSetting \"standard format\" options via `@plugin` are yet to be specified later. Obviously the options will be set via typical `@import/@media`-like syntax, e.g.:\r\n```less\r\n@plugin (s1, advanced, compatibility: ie8) \"clean-css\";\r\n```\r\nBut exact implementation details to be set up later.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/less/less-meta/issues/comments/230093401","html_url":"https://github.com/less/less-meta/issues/17#issuecomment-230093401","issue_url":"https://api.github.com/repos/less/less-meta/issues/17","id":230093401,"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":"2016-07-02T09:44:58Z","updated_at":"2016-07-02T09:44:58Z","body":":+1: "}}
{"actor":{"display_login":"seven-phases-max"}}