Skip to content

Commit

Permalink
docs(readme): update default values for options (#1000)
Browse files Browse the repository at this point in the history
  • Loading branch information
JIENIU$ authored and evilebottnawi committed Nov 29, 2019
1 parent 0961304 commit e21ab00
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions README.md
Expand Up @@ -109,15 +109,15 @@ module.exports = {

## Options

| Name | Type | Default | Description |
| :-----------------------------------------: | :-------------------------: | :-----: | :--------------------------------------------------------------------- |
| **[`url`](#url)** | `{Boolean\|Function}` | `true` | Enables/Disables `url`/`image-set` functions handling |
| **[`import`](#import)** | `{Boolean\|Function}` | `true` | Enables/Disables `@import` at-rules handling |
| **[`modules`](#modules)** | `{Boolean\|String\|Object}` | `false` | Enables/Disables CSS Modules and their configuration |
| **[`sourceMap`](#sourcemap)** | `{Boolean}` | `false` | Enables/Disables generation of source maps |
| **[`importLoaders`](#importloaders)** | `{Number}` | `0` | Enables/Disables or setups number of loaders applied before CSS loader |
| **[`localsConvention`](#localsconvention)** | `{String}` | `asIs` | Style of exported classnames |
| **[`onlyLocals`](#onlylocals)** | `{Boolean}` | `false` | Export only locals |
| Name | Type | Default | Description |
| :-----------------------------------------: | :-------------------------: | :------: | :--------------------------------------------------------------------- |
| **[`url`](#url)** | `{Boolean\|Function}` | `true` | Enables/Disables `url`/`image-set` functions handling |
| **[`import`](#import)** | `{Boolean\|Function}` | `true` | Enables/Disables `@import` at-rules handling |
| **[`modules`](#modules)** | `{Boolean\|String\|Object}` | `false` | Enables/Disables CSS Modules and their configuration |
| **[`sourceMap`](#sourcemap)** | `{Boolean}` | `false` | Enables/Disables generation of source maps |
| **[`importLoaders`](#importloaders)** | `{Number}` | `0` | Enables/Disables or setups number of loaders applied before CSS loader |
| **[`localsConvention`](#localsconvention)** | `{String}` | `'asIs'` | Style of exported classnames |
| **[`onlyLocals`](#onlylocals)** | `{Boolean}` | `false` | Export only locals |

### `url`

Expand Down Expand Up @@ -201,7 +201,7 @@ module.exports = {

### `import`

Type: `Boolean`
Type: `Boolean|Function`
Default: `true`

Enables/Disables `@import` at-rules handling.
Expand Down Expand Up @@ -540,7 +540,7 @@ module.exports = {
##### `mode`

Type: `String`
Default: `local`
Default: `'local'`

Setup `mode` option. You can omit the value when you want `local` mode.

Expand All @@ -567,15 +567,15 @@ module.exports = {
##### `localIdentName`

Type: `String`
Default: `[hash:base64]`
Default: `'[hash:base64]'`

You can configure the generated ident with the `localIdentName` query parameter.
See [loader-utils's documentation](https://github.com/webpack/loader-utils#interpolatename) for more information on options.

Recommendations:

- use `[path][name]__[local]` for development
- use `[hash:base64]` for production
- use `'[path][name]__[local]'` for development
- use `'[hash:base64]'` for production

The `[local]` placeholder contains original class.

Expand Down Expand Up @@ -782,7 +782,7 @@ This may change in the future when the module system (i. e. webpack) supports lo
### `localsConvention`

Type: `String`
Default: `undefined`
Default: `'asIs'`

Style of exported classnames.

Expand Down

0 comments on commit e21ab00

Please sign in to comment.