Skip to content

Instantly share code, notes, and snippets.

@ryanve
Last active September 26, 2017 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanve/8a8dea8e14fa1365f8a8f67327769ead to your computer and use it in GitHub Desktop.
Save ryanve/8a8dea8e14fa1365f8a8f67327769ead to your computer and use it in GitHub Desktop.
postcss config example
{
"private": true,
"scripts": {
"css": "postcss module.css --no-map --output main.css"
},
"devDependencies": {
"postcss-cli": "^4.1.1",
"postcss-functions": "^3.0.0",
"postcss-import": "^11.0.0"
}
}
const swatch = require("./swatch");
module.exports = ctx => ({
map: ctx.options.map,
parser: ctx.options.parser,
plugins: {
"postcss-import": {
root: ctx.file.dirname
},
"postcss-functions": {
functions: { swatch }
},
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment