Skip to content

Instantly share code, notes, and snippets.

View briancaffey's full-sized avatar
🧘‍♂️

briancaffey briancaffey

🧘‍♂️
View GitHub Profile

Keybase proof

I hereby claim:

  • I am briancaffey on github.
  • I am briancaffey (https://keybase.io/briancaffey) on keybase.
  • I have a public key ASDQSFWB5fJUh26hjLw19-_boIt-hPGpulXihwML7bAu9wo

To claim this, I am signing this object:

@briancaffey
briancaffey / enable_css_modules.md
Created March 20, 2018 02:26
Enable CSS modules in a create-react-app project

Enable CSS Modules in create-react-app

After running create-react-app project_name, run npm run eject and then add the following lines to webpack.config.dev.js and webpack.config.prod.js:

modules: true,
localIdentName: '[name]__[local]___[hash:base64:5]'
{
"features": [{
"type": "Feature",
"geometry": {
"coordinates": [38.921217, -77.020462]
}
}, {
"type": "Feature",
"geometry": {
"coordinates": [38.823, -77.03976]
{
"features": [{
"type": "Feature",
"geometry": {
"coordinates": [38.921217, -77.020462]
}
}, {
"type": "Feature",
"geometry": {
"coordinates": [38.823, -77.03976]
{
"features": [{
"type": "Feature",
"geometry": {
"coordinates": [38.921217, -77.020462]
}
}, {
"type": "Feature",
"geometry": {
"coordinates": [-77.020462, 38.921217]
{
"features": [{
"type": "Feature",
"geometry": {
"coordinates": [200, 100]
}
}, {
"type": "Feature",
"geometry": {
"coordinates": [200, 100]