Skip to content

Instantly share code, notes, and snippets.

@alexandrricov
Created April 21, 2017 06:37
Show Gist options
  • Save alexandrricov/be7541f765cb0da3f820e56f94e43d37 to your computer and use it in GitHub Desktop.
Save alexandrricov/be7541f765cb0da3f820e56f94e43d37 to your computer and use it in GitHub Desktop.
add postcss-custom-properties to create-react-app without "eject"
"scripts": {
"postbuild": "postcss --replace build/**/*.css"
}
module.exports = ctx => ({
map: ctx.options.map,
replace: ctx.options.replace,
plugins: {
'postcss-custom-properties': { preserve: true },
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment