Skip to content

Commit 0bf20a1

Browse files
author
Jonne Räsänen
committed
refactor the name of the configuration option for CSS Module class name template to be more understandable
1 parent 3970f26 commit 0bf20a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-scripts/config/custom-react-scripts/webpack-config/style-loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const extractTextPluginOptions = require('../options/extract-text-plugin-options
33
const ExtractTextPlugin = require('extract-text-webpack-plugin');
44
const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false';
55
const localIdentName =
6-
process.env.REACT_APP_CSS_MODULE_IDENT_NAME ||
6+
process.env.REACT_APP_CSS_MODULE_CLASSNAME_TEMPLATE ||
77
'[sha512:hash:base32]-[name]-[local]';
88

99
module.exports = (loader, test, exclude, modules) => isDev => {

packages/react-scripts/template/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ REACT_APP_LESS_MODULES = true;
1313
REACT_APP_WEBPACK_DASHBOARD = true;
1414

1515
# CSS Module hash
16-
# REACT_APP_CSS_MODULE_IDENT_NAME = 'module-[sha512:hash:base32]-[name]-[local]';
16+
# REACT_APP_CSS_MODULE_CLASSNAME_TEMPLATE = 'module-[sha512:hash:base32]-[name]-[local]';

0 commit comments

Comments
 (0)