Created
April 21, 2017 06:37
-
-
Save alexandrricov/be7541f765cb0da3f820e56f94e43d37 to your computer and use it in GitHub Desktop.
add postcss-custom-properties to create-react-app without "eject"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"scripts": { | |
"postbuild": "postcss --replace build/**/*.css" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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