{"action":"created","issue":{"url":"https://api.github.com/repos/ben-eb/postcss-merge-rules/issues/11","labels_url":"https://api.github.com/repos/ben-eb/postcss-merge-rules/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/ben-eb/postcss-merge-rules/issues/11/comments","events_url":"https://api.github.com/repos/ben-eb/postcss-merge-rules/issues/11/events","html_url":"https://github.com/ben-eb/postcss-merge-rules/issues/11","id":122764961,"number":11,"title":"removes 'auto' from 'margin: 0 auto'","user":{"login":"jekrb","id":2081699,"avatar_url":"https://avatars.githubusercontent.com/u/2081699?v=3","gravatar_id":"","url":"https://api.github.com/users/jekrb","html_url":"https://github.com/jekrb","followers_url":"https://api.github.com/users/jekrb/followers","following_url":"https://api.github.com/users/jekrb/following{/other_user}","gists_url":"https://api.github.com/users/jekrb/gists{/gist_id}","starred_url":"https://api.github.com/users/jekrb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jekrb/subscriptions","organizations_url":"https://api.github.com/users/jekrb/orgs","repos_url":"https://api.github.com/users/jekrb/repos","events_url":"https://api.github.com/users/jekrb/events{/privacy}","received_events_url":"https://api.github.com/users/jekrb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-17T16:02:47Z","updated_at":"2015-12-17T16:47:14Z","closed_at":null,"body":"Greetings!  Thanks for the awesome plugin!\r\n\r\nIt seems that `margin: 0 auto` becomes `margin: 0`.  I believe this may be bug."},"comment":{"url":"https://api.github.com/repos/ben-eb/postcss-merge-rules/issues/comments/165506378","html_url":"https://github.com/ben-eb/postcss-merge-rules/issues/11#issuecomment-165506378","issue_url":"https://api.github.com/repos/ben-eb/postcss-merge-rules/issues/11","id":165506378,"user":{"login":"jekrb","id":2081699,"avatar_url":"https://avatars.githubusercontent.com/u/2081699?v=3","gravatar_id":"","url":"https://api.github.com/users/jekrb","html_url":"https://github.com/jekrb","followers_url":"https://api.github.com/users/jekrb/followers","following_url":"https://api.github.com/users/jekrb/following{/other_user}","gists_url":"https://api.github.com/users/jekrb/gists{/gist_id}","starred_url":"https://api.github.com/users/jekrb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jekrb/subscriptions","organizations_url":"https://api.github.com/users/jekrb/orgs","repos_url":"https://api.github.com/users/jekrb/repos","events_url":"https://api.github.com/users/jekrb/events{/privacy}","received_events_url":"https://api.github.com/users/jekrb/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T16:47:14Z","updated_at":"2015-12-17T16:47:14Z","body":"Sure, thanks!\r\nI was using `postcss-import', `autoprefixer`, and `postcss-merge-rules`. Then I used `uncss` on the postcss output to remove unused css.  Finally I used `cssnano` on the `uncss` output to minify the css.\r\nI'm using the postcss js api.\r\n\r\nIt looked something like this:\r\n\r\n```\r\n\r\npostcss([atImport, autoprefixer, mergeRules])\r\n  .process(css, {\r\n    from: 'src/styles/index.css'\r\n  })\r\n  .then(result => {\r\n    fs.writeFileSync('public/styles/bundle.css', result.css)\r\n    const opts = {\r\n      stylesheets: ['styles/bundle.css'],\r\n      csspath: '../public'\r\n    }\r\n    uncss(htmls, opts, (err, output) => {\r\n      if (err) console.error(err)\r\n      fs.writeFileSync('public/styles/bundle.css', output)\r\n      postcss([cssnano])\r\n        .process(output)\r\n        .then(result => {\r\n          fs.writeFileSync('public/styles/bundle.css', result.css)\r\n        })\r\n    })\r\n  })\r\n```\r\n\r\nThis is my first attempt at using postcss and it's various plugins, I have been really off with something!"}}