Skip to content

Commit

Permalink
Add camelCase option for css-loader
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-holovin committed Oct 8, 2017
1 parent 0a7661b commit 834f019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-1-config-css-modules/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`
}

0 comments on commit 834f019

Please sign in to comment.