{"action":"created","issue":{"url":"https://api.github.com/repos/postcss/postcss-import/issues/97","labels_url":"https://api.github.com/repos/postcss/postcss-import/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/postcss/postcss-import/issues/97/comments","events_url":"https://api.github.com/repos/postcss/postcss-import/issues/97/events","html_url":"https://github.com/postcss/postcss-import/issues/97","id":117115598,"number":97,"title":"Option to move imported content to top of file","user":{"login":"niksy","id":389286,"avatar_url":"https://avatars.githubusercontent.com/u/389286?v=3","gravatar_id":"","url":"https://api.github.com/users/niksy","html_url":"https://github.com/niksy","followers_url":"https://api.github.com/users/niksy/followers","following_url":"https://api.github.com/users/niksy/following{/other_user}","gists_url":"https://api.github.com/users/niksy/gists{/gist_id}","starred_url":"https://api.github.com/users/niksy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niksy/subscriptions","organizations_url":"https://api.github.com/users/niksy/orgs","repos_url":"https://api.github.com/users/niksy/repos","events_url":"https://api.github.com/users/niksy/events{/privacy}","received_events_url":"https://api.github.com/users/niksy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-16T12:45:27Z","updated_at":"2015-11-27T19:59:31Z","closed_at":null,"body":"Sometimes when you’re importing third-party CSS you would like to inline that content at the top of the corresponding CSS file, not at the place where it was referenced, just to avoid potential clashes with your CSS. Do you think this is valid to be included as option?\r\n\r\nExample:\r\n\r\n```css\r\n@import url('library.css?postcss-import-top');\r\n```\r\n\r\nContent from this file will be moved at the top of output CSS.\r\n\r\nAlternatively, you can provide list of imports you would like to move to the top inside plugin initialization:\r\n\r\n```js\r\nvar postcss = require(\"postcss\")\r\nvar atImport = require(\"postcss-import\")\r\n\r\nvar css = postcss()\r\n  .use(atImport({\r\n    importsAtTop: ['library.css']\r\n  }))\r\n  .process(cssString)\r\n  .css\r\n```"},"comment":{"url":"https://api.github.com/repos/postcss/postcss-import/issues/comments/160197218","html_url":"https://github.com/postcss/postcss-import/issues/97#issuecomment-160197218","issue_url":"https://api.github.com/repos/postcss/postcss-import/issues/97","id":160197218,"user":{"login":"oleersoy","id":1163873,"avatar_url":"https://avatars.githubusercontent.com/u/1163873?v=3","gravatar_id":"","url":"https://api.github.com/users/oleersoy","html_url":"https://github.com/oleersoy","followers_url":"https://api.github.com/users/oleersoy/followers","following_url":"https://api.github.com/users/oleersoy/following{/other_user}","gists_url":"https://api.github.com/users/oleersoy/gists{/gist_id}","starred_url":"https://api.github.com/users/oleersoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleersoy/subscriptions","organizations_url":"https://api.github.com/users/oleersoy/orgs","repos_url":"https://api.github.com/users/oleersoy/repos","events_url":"https://api.github.com/users/oleersoy/events{/privacy}","received_events_url":"https://api.github.com/users/oleersoy/received_events","type":"User","site_admin":false},"created_at":"2015-11-27T19:59:31Z","updated_at":"2015-11-27T19:59:31Z","body":"@niksy and @jakelazaroff do you have a simple example that clearly shows why additional code and documentation should be created to support this?"}}