From 834f0197605dcddb9ff7ccbbfe858b54da734ac4 Mon Sep 17 00:00:00 2001 From: Roman Holovin Date: Sun, 8 Oct 2017 19:09:32 +0300 Subject: [PATCH] Add camelCase option for css-loader --- packages/gatsby-1-config-css-modules/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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` }