Created
October 9, 2017 18:51
-
-
Save danny-andrews/bdb0b950e6f4a1c898f3b47a227edc6b to your computer and use it in GitHub Desktop.
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
{ | |
test: /\.(jsx?)$/, | |
exclude: /node_modules/, | |
use: [{ | |
loader: 'babel-loader', | |
query: { | |
plugins: [ | |
[ | |
'babel-plugin-react-css-modules', | |
{ | |
context, | |
generateScopedName: scopedPattern, | |
filetypes: { '.scss': 'postcss-scss' } | |
} | |
] | |
] | |
} | |
}] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment