Created
November 1, 2017 08:37
-
-
Save artalar/7278ac8021ca3d7d811361280b93e028 to your computer and use it in GitHub Desktop.
Add styled-components class naming with CRA
This file contains hidden or 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
const { injectBabelPlugin } = require('react-app-rewired'); | |
module.exports = (config, env) => { | |
config = injectBabelPlugin( | |
[ | |
'babel-plugin-styled-components', | |
{ | |
displayName: true, | |
}, | |
], | |
config | |
); | |
return config; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment