{"action":"closed","issue":{"url":"https://api.github.com/repos/basscss/basscss/issues/162","labels_url":"https://api.github.com/repos/basscss/basscss/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/basscss/basscss/issues/162/comments","events_url":"https://api.github.com/repos/basscss/basscss/issues/162/events","html_url":"https://github.com/basscss/basscss/issues/162","id":129850458,"number":162,"title":"Error: '@import must precede all other statements (besides @charset) [postcss-import]'","user":{"login":"mvilrokx","id":507728,"avatar_url":"https://avatars.githubusercontent.com/u/507728?v=3","gravatar_id":"","url":"https://api.github.com/users/mvilrokx","html_url":"https://github.com/mvilrokx","followers_url":"https://api.github.com/users/mvilrokx/followers","following_url":"https://api.github.com/users/mvilrokx/following{/other_user}","gists_url":"https://api.github.com/users/mvilrokx/gists{/gist_id}","starred_url":"https://api.github.com/users/mvilrokx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvilrokx/subscriptions","organizations_url":"https://api.github.com/users/mvilrokx/orgs","repos_url":"https://api.github.com/users/mvilrokx/repos","events_url":"https://api.github.com/users/mvilrokx/events{/privacy}","received_events_url":"https://api.github.com/users/mvilrokx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-29T18:50:21Z","updated_at":"2016-02-01T18:39:30Z","closed_at":"2016-02-01T18:39:30Z","body":"I've downloaded basscss using npm.\r\nI am trying to include some of the basscss modules into my own build using import statements.\r\n\r\nHere is the content of my input.css file:\r\n```\r\n@import 'basscss-base-reset';\r\n@import 'basscss-base-forms';\r\n@import 'basscss-defaults';\r\n\r\n```\r\n\r\nWhenever I run `npm run build` ( = `postcss --config postcss.config.js`) I get the following error:\r\n```\r\nnode_modules/basscss-base-forms/index.css\r\n52:1\t⚠  @import must precede all other statements (besides @charset) [postcss-import]\r\n\r\n```\r\n\r\nHere's my postcss.config.js file:\r\n```\r\nmodule.exports = {\r\n  use: [\r\n    \"postcss-import\",\r\n    \"postcss-discard-comments\",\r\n    \"postcss-custom-media\",\r\n    \"postcss-custom-properties\",\r\n    \"postcss-calc\",\r\n    \"autoprefixer\",\r\n    \"postcss-reporter\"\r\n  ],\r\n  input: \"src/input.css\",\r\n  output: \"css/style.css\",\r\n  \"local-plugins\": true,\r\n  autoprefixer: {\r\n    browsers: \"> 5%\"\r\n  },\r\n  \"postcss-discard-comments\": {\r\n    // Used to keep comments for Style Guide generation\r\n    remove: function(comment) { return comment.indexOf(\"@styleguide\") == -1; }\r\n  }\r\n};\r\n```\r\n\r\n"}}