{"action":"created","issue":{"url":"https://api.github.com/repos/mtojo/rollup-plugin-stylus-css-modules/issues/2","repository_url":"https://api.github.com/repos/mtojo/rollup-plugin-stylus-css-modules","labels_url":"https://api.github.com/repos/mtojo/rollup-plugin-stylus-css-modules/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/mtojo/rollup-plugin-stylus-css-modules/issues/2/comments","events_url":"https://api.github.com/repos/mtojo/rollup-plugin-stylus-css-modules/issues/2/events","html_url":"https://github.com/mtojo/rollup-plugin-stylus-css-modules/issues/2","id":196350815,"number":2,"title":"Can I use it without css-modules?","user":{"login":"Shyam-Chen","id":13535256,"avatar_url":"https://avatars.githubusercontent.com/u/13535256?v=3","gravatar_id":"","url":"https://api.github.com/users/Shyam-Chen","html_url":"https://github.com/Shyam-Chen","followers_url":"https://api.github.com/users/Shyam-Chen/followers","following_url":"https://api.github.com/users/Shyam-Chen/following{/other_user}","gists_url":"https://api.github.com/users/Shyam-Chen/gists{/gist_id}","starred_url":"https://api.github.com/users/Shyam-Chen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shyam-Chen/subscriptions","organizations_url":"https://api.github.com/users/Shyam-Chen/orgs","repos_url":"https://api.github.com/users/Shyam-Chen/repos","events_url":"https://api.github.com/users/Shyam-Chen/events{/privacy}","received_events_url":"https://api.github.com/users/Shyam-Chen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-19T07:50:25Z","updated_at":"2016-12-21T05:34:02Z","closed_at":null,"body":"Angular 2 already provides the CSS modules."},"comment":{"url":"https://api.github.com/repos/mtojo/rollup-plugin-stylus-css-modules/issues/comments/268439594","html_url":"https://github.com/mtojo/rollup-plugin-stylus-css-modules/issues/2#issuecomment-268439594","issue_url":"https://api.github.com/repos/mtojo/rollup-plugin-stylus-css-modules/issues/2","id":268439594,"user":{"login":"mtojo","id":1346117,"avatar_url":"https://avatars.githubusercontent.com/u/1346117?v=3","gravatar_id":"","url":"https://api.github.com/users/mtojo","html_url":"https://github.com/mtojo","followers_url":"https://api.github.com/users/mtojo/followers","following_url":"https://api.github.com/users/mtojo/following{/other_user}","gists_url":"https://api.github.com/users/mtojo/gists{/gist_id}","starred_url":"https://api.github.com/users/mtojo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtojo/subscriptions","organizations_url":"https://api.github.com/users/mtojo/orgs","repos_url":"https://api.github.com/users/mtojo/repos","events_url":"https://api.github.com/users/mtojo/events{/privacy}","received_events_url":"https://api.github.com/users/mtojo/received_events","type":"User","site_admin":false},"created_at":"2016-12-21T05:34:02Z","updated_at":"2016-12-21T05:34:02Z","body":"No, this plugin is intended to use the Stylus as a CSS modules.\r\n\r\nIf you need integrates Angular 2 and Stylus with Rollup.js, it might be solved by using [rollup-plugin-angular](https://github.com/cebor/rollup-plugin-angular):\r\n\r\n```js\r\nimport angular from 'rollup-plugin-angular';\r\nimport stylus from 'stylus';\r\n\r\nexport default {\r\n  entry: ...,\r\n  format: 'iife',\r\n  dest: ...,\r\n  plugins: [\r\n    angular({\r\n      preprocessors: {\r\n        style(source, filename) {\r\n          const styl = stylus(source);\r\n          styl.set('filename', filename);\r\n          return await styl.render();\r\n        }\r\n      }\r\n    })\r\n  ]\r\n}\r\n```\r\n\r\nSee more details at: [https://github.com/cebor/rollup-plugin-angular#example-1](https://github.com/cebor/rollup-plugin-angular#example-1)"}}
{"actor":{"display_login":"mtojo"}}