Skip to content

Instantly share code, notes, and snippets.

@glennreyes
Created September 14, 2016 09:17
Show Gist options
  • Save glennreyes/5d300b3c8c06480e29f678ade832c546 to your computer and use it in GitHub Desktop.
Save glennreyes/5d300b3c8c06480e29f678ade832c546 to your computer and use it in GitHub Desktop.
Custom props & media config in webpack
const customMedia = require('./postcss/customMedia');
const customProperties = require('./postcss/customProperties');
module.exports = {
...
plugins: [
postcss: () => [
postcss: () => [
cssnext({ features: { customMedia, customProperties } }),
],
]
]
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment