@@ -790,15 +790,14 @@ Style of exported classnames.
790790
791791By default, the exported JSON keys mirror the class names (i.e ` asIs ` value).
792792
793- | Name | Type | Description |
794- | :-------------------: | :--------: | :----------------------------------------------------------------------------------------------- |
795- | ** ` 'asIs' ` ** | ` {String} ` | Class names will be exported as is. |
796- | ** ` 'camelCase' ` ** | ` {String} ` | Class names will be camelized, the original class name will not to be removed from the locals |
797- | ** ` 'camelCaseOnly' ` ** | ` {String} ` | Class names will be camelized, the original class name will be removed from the locals |
798- | ** ` 'dashes' ` ** | ` {String} ` | Only dashes in class names will be camelized |
799- | ** ` 'dashesOnly' ` ** | ` {String} ` | Dashes in class names will be camelized, the original class name will be removed from the locals |
800-
801- If you want more control over exported classnames, you can also provide a function.
793+ | Name | Type | Description |
794+ | :-------------------: | :----------: | :----------------------------------------------------------------------------------------------- |
795+ | ** ` 'asIs' ` ** | ` {String} ` | Class names will be exported as is. |
796+ | ** ` 'camelCase' ` ** | ` {String} ` | Class names will be camelized, the original class name will not to be removed from the locals |
797+ | ** ` 'camelCaseOnly' ` ** | ` {String} ` | Class names will be camelized, the original class name will be removed from the locals |
798+ | ** ` 'dashes' ` ** | ` {String} ` | Only dashes in class names will be camelized |
799+ | ** ` 'dashesOnly' ` ** | ` {String} ` | Dashes in class names will be camelized, the original class name will be removed from the locals |
800+ | | ` {Function} ` | Takes the original class name as first argument and returns the exported class name |
802801
803802** file.css**
804803
@@ -823,7 +822,7 @@ module.exports = {
823822 test: / \. css$ / i ,
824823 loader: ' css-loader' ,
825824 options: {
826- localsConvention : ( classname ) => classname . toLowerCase () ,
825+ localsConvention: ' camelCase ' ,
827826 },
828827 },
829828 ],
0 commit comments