mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-05-06 04:34:17 +08:00
Update CSS Modules localIndetName (#4192)
* Update CSS Modules localIndetName * Add missing file to package * Correct regex * plz plz plz
This commit is contained in:
@@ -17,6 +17,7 @@ const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');
|
||||
const WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin');
|
||||
const eslintFormatter = require('react-dev-utils/eslintFormatter');
|
||||
const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
|
||||
const getCSSModuleLocalIdent = require('react-dev-utils/getCSSModuleLocalIdent');
|
||||
const getClientEnvironment = require('./env');
|
||||
const paths = require('./paths');
|
||||
|
||||
@@ -269,7 +270,7 @@ module.exports = {
|
||||
options: {
|
||||
importLoaders: 1,
|
||||
modules: true,
|
||||
localIdentName: '[path]__[name]___[local]',
|
||||
getLocalIdent: getCSSModuleLocalIdent,
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user