@@ -790,15 +790,14 @@ Style of exported classnames.
790
790
791
791
By default, the exported JSON keys mirror the class names (i.e ` asIs ` value).
792
792
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 |
802
801
803
802
** file.css**
804
803
@@ -823,7 +822,7 @@ module.exports = {
823
822
test: / \. css$ / i ,
824
823
loader: ' css-loader' ,
825
824
options: {
826
- localsConvention : ( classname ) => classname . toLowerCase () ,
825
+ localsConvention: ' camelCase ' ,
827
826
},
828
827
},
829
828
],
0 commit comments