{"action":"opened","issue":{"url":"https://api.github.com/repos/postcss/postcss-loader/issues/3","labels_url":"https://api.github.com/repos/postcss/postcss-loader/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/postcss/postcss-loader/issues/3/comments","events_url":"https://api.github.com/repos/postcss/postcss-loader/issues/3/events","html_url":"https://github.com/postcss/postcss-loader/issues/3","id":54688877,"number":3,"title":"Possible to pass postcss options?","user":{"login":"at0g","id":1406770,"avatar_url":"https://avatars.githubusercontent.com/u/1406770?v=3","gravatar_id":"","url":"https://api.github.com/users/at0g","html_url":"https://github.com/at0g","followers_url":"https://api.github.com/users/at0g/followers","following_url":"https://api.github.com/users/at0g/following{/other_user}","gists_url":"https://api.github.com/users/at0g/gists{/gist_id}","starred_url":"https://api.github.com/users/at0g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/at0g/subscriptions","organizations_url":"https://api.github.com/users/at0g/orgs","repos_url":"https://api.github.com/users/at0g/repos","events_url":"https://api.github.com/users/at0g/events{/privacy}","received_events_url":"https://api.github.com/users/at0g/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-18T07:13:18Z","updated_at":"2015-01-18T07:13:18Z","closed_at":null,"body":"Is it possible to pass postcss options with postcss-loader, such as `{ map: true }`?\r\n\r\nI have a very simple stylus file, which creates two media queries (as a contrived example):\r\n\r\n```\r\n  @media only screen and (min-width: 321px)\r\n    color lightcyan\r\n\r\n  @media only screen and (min-width: 321px)\r\n    font-size 24px\r\n```\r\n\r\nmy webpack config file looks like this:\r\n\r\n\r\nwebpack.config.js\r\n```\r\n{\r\n    module: {\r\n        loaders: [\r\n            { test: /\\.styl$/,loader: 'style-loader!css-loader?sourceMap!postcss-loader!stylus-loader?paths=src' }\r\n        ]\r\n    },\r\n\r\n    postcss: {\r\n        defaults: [require('css-mqpacker')]\r\n    }\r\n}\r\n```\r\n\r\nWhen viewing the source map, the file contents shown are _after_ css-mqpacker has run:\r\n\r\n```\r\n@media only screen and (min-width: 321px)\r\n    color lightcyan\r\n    font-size 24px\r\n```\r\n\r\nIf I remove css-mqpacker from the post css defaults, the source map displays both media queries in the stylus file, as per the original source.\r\n\r\nI've tried the same with autoprefixer too - it also shows the source file contents after autoprefixer has run and not the actual source.\r\n\r\nAny ideas? I'm very new to webpack so my apologies if I've missed something obvious..."}}