{"action":"created","issue":{"url":"https://api.github.com/repos/andyjansson/postcss-sassy-mixins/issues/7","repository_url":"https://api.github.com/repos/andyjansson/postcss-sassy-mixins","labels_url":"https://api.github.com/repos/andyjansson/postcss-sassy-mixins/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/andyjansson/postcss-sassy-mixins/issues/7/comments","events_url":"https://api.github.com/repos/andyjansson/postcss-sassy-mixins/issues/7/events","html_url":"https://github.com/andyjansson/postcss-sassy-mixins/issues/7","id":145345163,"number":7,"title":"Unknown word @mixin","user":{"login":"Ajar-Ajar","id":2492303,"avatar_url":"https://avatars.githubusercontent.com/u/2492303?v=3","gravatar_id":"","url":"https://api.github.com/users/Ajar-Ajar","html_url":"https://github.com/Ajar-Ajar","followers_url":"https://api.github.com/users/Ajar-Ajar/followers","following_url":"https://api.github.com/users/Ajar-Ajar/following{/other_user}","gists_url":"https://api.github.com/users/Ajar-Ajar/gists{/gist_id}","starred_url":"https://api.github.com/users/Ajar-Ajar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ajar-Ajar/subscriptions","organizations_url":"https://api.github.com/users/Ajar-Ajar/orgs","repos_url":"https://api.github.com/users/Ajar-Ajar/repos","events_url":"https://api.github.com/users/Ajar-Ajar/events{/privacy}","received_events_url":"https://api.github.com/users/Ajar-Ajar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-02T07:05:25Z","updated_at":"2016-04-16T10:23:03Z","closed_at":"2016-04-16T10:23:03Z","body":"Hi, I'm migrating from sass to postcss. \r\nI get an error trying to compile the plugin saying: Unknown word @mixin\r\nany ideas?\r\n\r\nthis is the mixin I'm defining \r\n```\r\n@mixin rem($px) {\r\n\t($px/16) * 1rem;\r\n}\r\n```\r\nand this is where i use it\r\n```\r\n.header {\r\n  font-size: @include rem(75)\r\n}\r\n```\r\n\r\nthese are the parts in my webpack config relevant to css:\r\n```\r\nvar webpack \t\t= require('webpack');\r\nvar precss       \t= require('precss');\r\nvar autoprefixer \t= require('autoprefixer');\r\nvar mixins \t\t\t= require('postcss-sassy-mixins');\r\n\r\nmodule.exports = {\r\n\r\n  module: {\r\n    loaders: [\r\n\t  {\r\n\t\ttest:   /\\.css$/,\r\n\t\tloader: \"style-loader!css-loader?modules&importLoaders=1!postcss-loader\"\r\n\t  }\r\n    ]\r\n  },\r\n  postcss: function () {\r\n    return [precss, mixins, autoprefixer];\r\n  },\r\n\r\n  plugins: [\r\n    new webpack.HotModuleReplacementPlugin(),\r\n    new webpack.DefinePlugin({\r\n      'process.env': {\r\n        CLIENT: JSON.stringify(true)\r\n      }\r\n    })\r\n  ],\r\n};\r\n```"},"comment":{"url":"https://api.github.com/repos/andyjansson/postcss-sassy-mixins/issues/comments/210786149","html_url":"https://github.com/andyjansson/postcss-sassy-mixins/issues/7#issuecomment-210786149","issue_url":"https://api.github.com/repos/andyjansson/postcss-sassy-mixins/issues/7","id":210786149,"user":{"login":"andyjansson","id":1737375,"avatar_url":"https://avatars.githubusercontent.com/u/1737375?v=3","gravatar_id":"","url":"https://api.github.com/users/andyjansson","html_url":"https://github.com/andyjansson","followers_url":"https://api.github.com/users/andyjansson/followers","following_url":"https://api.github.com/users/andyjansson/following{/other_user}","gists_url":"https://api.github.com/users/andyjansson/gists{/gist_id}","starred_url":"https://api.github.com/users/andyjansson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyjansson/subscriptions","organizations_url":"https://api.github.com/users/andyjansson/orgs","repos_url":"https://api.github.com/users/andyjansson/repos","events_url":"https://api.github.com/users/andyjansson/events{/privacy}","received_events_url":"https://api.github.com/users/andyjansson/received_events","type":"User","site_admin":false},"created_at":"2016-04-16T10:23:03Z","updated_at":"2016-04-16T10:23:03Z","body":"Sorry for taking so long getting back to you. I've been on vacation in Japan. \r\n\r\nThe plugin wouldn't yield this error. It's probably postcss complaining because you're using invalid CSS. Furthermore, what you're trying to accomplish is not within the scope of this plugin. Mixins are only for injecting *rules*, not values. You'd want [postcss-functions](https://github.com/andyjansson/postcss-functions) for that."}}