diff --git a/packages/gatsby-1-config-css-modules/src/index.js b/packages/gatsby-1-config-css-modules/src/index.js index 48d7f378e42bd..9f8f69fd1fd4c 100644 --- a/packages/gatsby-1-config-css-modules/src/index.js +++ b/packages/gatsby-1-config-css-modules/src/index.js @@ -2,6 +2,6 @@ const LOCAL_IDENT_NAME = `[path]---[name]---[local]---[hash:base64:5]` exports.LOCAL_IDENT_NAME = LOCAL_IDENT_NAME exports.cssModulesConfig = stage => { - const loader = `css?modules&minimize&importLoaders=1&localIdentName=${LOCAL_IDENT_NAME}` + const loader = `css?modules&camelCase=true&minimize&importLoaders=1&localIdentName=${LOCAL_IDENT_NAME}` return stage.startsWith(`build`) ? loader : `${loader}&sourceMap` }