{"action":"created","issue":{"url":"https://api.github.com/repos/webpack-contrib/css-loader/issues/788","repository_url":"https://api.github.com/repos/webpack-contrib/css-loader","labels_url":"https://api.github.com/repos/webpack-contrib/css-loader/issues/788/labels{/name}","comments_url":"https://api.github.com/repos/webpack-contrib/css-loader/issues/788/comments","events_url":"https://api.github.com/repos/webpack-contrib/css-loader/issues/788/events","html_url":"https://github.com/webpack-contrib/css-loader/issues/788","id":377197861,"node_id":"MDU6SXNzdWUzNzcxOTc4NjE=","number":788,"title":"Support for exports from postcss plugins (other than ICSS ones)","user":{"login":"ZeeCoder","id":3679506,"node_id":"MDQ6VXNlcjM2Nzk1MDY=","avatar_url":"https://avatars0.githubusercontent.com/u/3679506?v=4","gravatar_id":"","url":"https://api.github.com/users/ZeeCoder","html_url":"https://github.com/ZeeCoder","followers_url":"https://api.github.com/users/ZeeCoder/followers","following_url":"https://api.github.com/users/ZeeCoder/following{/other_user}","gists_url":"https://api.github.com/users/ZeeCoder/gists{/gist_id}","starred_url":"https://api.github.com/users/ZeeCoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZeeCoder/subscriptions","organizations_url":"https://api.github.com/users/ZeeCoder/orgs","repos_url":"https://api.github.com/users/ZeeCoder/repos","events_url":"https://api.github.com/users/ZeeCoder/events{/privacy}","received_events_url":"https://api.github.com/users/ZeeCoder/received_events","type":"User","site_admin":false},"labels":[{"id":595332638,"node_id":"MDU6TGFiZWw1OTUzMzI2Mzg=","url":"https://api.github.com/repos/webpack-contrib/css-loader/labels/flag:%20Needs%20more%20info","name":"flag: Needs more info","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-11-04T21:41:27Z","updated_at":"2018-12-03T10:31:01Z","closed_at":null,"author_association":"NONE","body":"Continuing the discussion here: https://github.com/webpack-contrib/css-loader/issues/645#issuecomment-355887308\r\n\r\nI see that currently adding\r\n```css\r\n:export { key: value; }\r\n```\r\nworks, and when the file goes through the css loader, it can be imported in the JS as a custom export.\r\n\r\nHowever as I've outlined I'd like to export a JSON object, and doing so using CSS is not ideal:\r\n```css\r\n:export { data: '{\"key\": \"value\"}' }\r\n```\r\nWhen I import this in JS, data is returned as string, with the quotes around it. (Without them it wouldn't pass as valid CSS)\r\n\r\nIdeally, I'd want to be able to import a JS object, as outputted by a postcss plugin.\r\n\r\n\r\nIn the \"next\" branch, there was a time where css-loader would look for postcss plugin messages with the \"export\" type, but it didn't same to make it in v1. (As outlined here: https://github.com/webpack-contrib/css-loader/issues/645#issuecomment-355887308)\r\n\r\nI'm wondering if there's any plan to add support for this in the future?"},"comment":{"url":"https://api.github.com/repos/webpack-contrib/css-loader/issues/comments/443662322","html_url":"https://github.com/webpack-contrib/css-loader/issues/788#issuecomment-443662322","issue_url":"https://api.github.com/repos/webpack-contrib/css-loader/issues/788","id":443662322,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzY2MjMyMg==","user":{"login":"evilebottnawi","id":4567934,"node_id":"MDQ6VXNlcjQ1Njc5MzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/4567934?v=4","gravatar_id":"","url":"https://api.github.com/users/evilebottnawi","html_url":"https://github.com/evilebottnawi","followers_url":"https://api.github.com/users/evilebottnawi/followers","following_url":"https://api.github.com/users/evilebottnawi/following{/other_user}","gists_url":"https://api.github.com/users/evilebottnawi/gists{/gist_id}","starred_url":"https://api.github.com/users/evilebottnawi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evilebottnawi/subscriptions","organizations_url":"https://api.github.com/users/evilebottnawi/orgs","repos_url":"https://api.github.com/users/evilebottnawi/repos","events_url":"https://api.github.com/users/evilebottnawi/events{/privacy}","received_events_url":"https://api.github.com/users/evilebottnawi/received_events","type":"User","site_admin":false},"created_at":"2018-12-03T10:31:01Z","updated_at":"2018-12-03T10:31:01Z","author_association":"MEMBER","body":"@ZeeCoder friendly ping, we prepare `2` version and can discussion about this. Problem with named `export` in `style-loader`, because `style-loader` export only `locals` to developers, we need rewrite `style-loader` for supporting this"}}
{"actor":{"display_login":"evilebottnawi"}}