Update CSS Modules localIndetName (#4192)

* Update CSS Modules localIndetName

* Add missing file to package

* Correct regex

* plz plz plz
This commit is contained in:
Ro Savage
2018-04-14 08:14:31 +12:00
committed by Joe Haddad
parent 1d4fdc2dd4
commit ae2cf07249
10 changed files with 109 additions and 16 deletions

View File

@@ -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,
},
},
{