@@ -109,15 +109,15 @@ module.exports = {
109
109
110
110
## Options
111
111
112
- | Name | Type | Default | Description |
113
- | :-----------------------------------------: | :-------------------------: | :-----: | :--------------------------------------------------------------------- |
114
- | ** [ ` url ` ] ( #url ) ** | ` {Boolean\|Function} ` | ` true ` | Enables/Disables ` url ` /` image-set ` functions handling |
115
- | ** [ ` import ` ] ( #import ) ** | ` {Boolean\|Function} ` | ` true ` | Enables/Disables ` @import ` at-rules handling |
116
- | ** [ ` modules ` ] ( #modules ) ** | ` {Boolean\|String\|Object} ` | ` false ` | Enables/Disables CSS Modules and their configuration |
117
- | ** [ ` sourceMap ` ] ( #sourcemap ) ** | ` {Boolean} ` | ` false ` | Enables/Disables generation of source maps |
118
- | ** [ ` importLoaders ` ] ( #importloaders ) ** | ` {Number} ` | ` 0 ` | Enables/Disables or setups number of loaders applied before CSS loader |
119
- | ** [ ` localsConvention ` ] ( #localsconvention ) ** | ` {String} ` | ` asIs ` | Style of exported classnames |
120
- | ** [ ` onlyLocals ` ] ( #onlylocals ) ** | ` {Boolean} ` | ` false ` | Export only locals |
112
+ | Name | Type | Default | Description |
113
+ | :-----------------------------------------: | :-------------------------: | :------ : | :--------------------------------------------------------------------- |
114
+ | ** [ ` url ` ] ( #url ) ** | ` {Boolean\|Function} ` | ` true ` | Enables/Disables ` url ` /` image-set ` functions handling |
115
+ | ** [ ` import ` ] ( #import ) ** | ` {Boolean\|Function} ` | ` true ` | Enables/Disables ` @import ` at-rules handling |
116
+ | ** [ ` modules ` ] ( #modules ) ** | ` {Boolean\|String\|Object} ` | ` false ` | Enables/Disables CSS Modules and their configuration |
117
+ | ** [ ` sourceMap ` ] ( #sourcemap ) ** | ` {Boolean} ` | ` false ` | Enables/Disables generation of source maps |
118
+ | ** [ ` importLoaders ` ] ( #importloaders ) ** | ` {Number} ` | ` 0 ` | Enables/Disables or setups number of loaders applied before CSS loader |
119
+ | ** [ ` localsConvention ` ] ( #localsconvention ) ** | ` {String} ` | ` ' asIs' ` | Style of exported classnames |
120
+ | ** [ ` onlyLocals ` ] ( #onlylocals ) ** | ` {Boolean} ` | ` false ` | Export only locals |
121
121
122
122
### ` url `
123
123
@@ -201,7 +201,7 @@ module.exports = {
201
201
202
202
### ` import `
203
203
204
- Type: ` Boolean `
204
+ Type: ` Boolean|Function `
205
205
Default: ` true `
206
206
207
207
Enables/Disables ` @import ` at-rules handling.
@@ -540,7 +540,7 @@ module.exports = {
540
540
##### ` mode `
541
541
542
542
Type: ` String `
543
- Default: ` local `
543
+ Default: ` ' local' `
544
544
545
545
Setup ` mode ` option. You can omit the value when you want ` local ` mode.
546
546
@@ -567,15 +567,15 @@ module.exports = {
567
567
##### ` localIdentName `
568
568
569
569
Type: ` String `
570
- Default: ` [hash:base64] `
570
+ Default: ` ' [hash:base64]' `
571
571
572
572
You can configure the generated ident with the ` localIdentName ` query parameter.
573
573
See [ loader-utils's documentation] ( https://github.com/webpack/loader-utils#interpolatename ) for more information on options.
574
574
575
575
Recommendations:
576
576
577
- - use ` [path][name]__[local] ` for development
578
- - use ` [hash:base64] ` for production
577
+ - use ` ' [path][name]__[local]' ` for development
578
+ - use ` ' [hash:base64]' ` for production
579
579
580
580
The ` [local] ` placeholder contains original class.
581
581
@@ -782,7 +782,7 @@ This may change in the future when the module system (i. e. webpack) supports lo
782
782
### ` localsConvention `
783
783
784
784
Type: ` String `
785
- Default: ` undefined `
785
+ Default: ` 'asIs' `
786
786
787
787
Style of exported classnames.
788
788
0 commit comments