Skip to content

Instantly share code, notes, and snippets.

@mohandere
Created May 30, 2018 10:51
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 mohandere/bfcabc3f7f8f074dbf36b714ecfd6665 to your computer and use it in GitHub Desktop.
Save mohandere/bfcabc3f7f8f074dbf36b714ecfd6665 to your computer and use it in GitHub Desktop.
package.json - Obfuscate CSS class names in Create React App without eject
{
"name": "my-react-app",
"version": "0.1.0",
"private": true,
"dependencies": {
"babel-plugin-react-css-modules": "^3.4.2",
"react": "^16.3.2",
"react-dom": "^16.3.2",
"react-scripts": "1.1.4"
},
"scripts": {
"start": "react-app-rewired start",
"build": "react-app-rewired build",
"test": "react-app-rewired test --env=jsdom",
"eject": "react-scripts eject"
},
"devDependencies": {
"react-app-rewired": "^1.5.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment