From f0cbb1612b80fd838090e698fc76d2653d378ce5 Mon Sep 17 00:00:00 2001 From: Diego Faria Date: Sun, 10 Sep 2017 20:21:09 +0200 Subject: [PATCH 1/2] Improve docs usability --- README.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index d558fcbb..bfc3afd5 100644 --- a/README.md +++ b/README.md @@ -94,17 +94,18 @@ It's useful when you, for instance, need to post process the CSS as a string. |Name|Type|Default|Description| |:--:|:--:|:-----:|:----------| -|**`root`**|`{String}`|`/`|Path to resolve URLs, URLs starting with `/` will not be translated| -|**`url`**|`{Boolean}`|`true`| Enable/Disable `url()` handling| -|**`alias`**|`{Object}`|`{}`|Create aliases to import certain modules more easily| -|**`import`** |`{Boolean}`|`true`| Enable/Disable @import handling| -|**`modules`**|`{Boolean}`|`false`|Enable/Disable CSS Modules| -|**`minimize`**|`{Boolean\|Object}`|`false`|Enable/Disable minification| -|**`sourceMap`**|`{Boolean}`|`false`|Enable/Disable Sourcemaps| -|**`camelCase`**|`{Boolean\|String}`|`false`|Export Classnames in CamelCase| -|**`importLoaders`**|`{Number}`|`0`|Number of loaders applied before CSS loader| +|**[`root`](https://github.com/webpack-contrib/css-loader#root)**|`{String}`|`/`|Path to resolve URLs, URLs starting with `/` will not be translated| +|**[`url`](https://github.com/webpack-contrib/css-loader#url)**|`{Boolean}`|`true`| Enable/Disable `url()` handling| +|**[`alias`](https://github.com/webpack-contrib/css-loader#alias)**|`{Object}`|`{}`|Create aliases to import certain modules more easily| +|**[`import`](https://github.com/webpack-contrib/css-loader#import)** |`{Boolean}`|`true`| Enable/Disable @import handling| +|**[`modules`](https://github.com/webpack-contrib/css-loader#modules)**|`{Boolean}`|`false`|Enable/Disable CSS Modules| +|**[`minimize`](https://github.com/webpack-contrib/css-loader#minimize)**|`{Boolean\|Object}`|`false`|Enable/Disable minification| +|**[`sourceMap`](https://github.com/webpack-contrib/css-loader#sourcemap)**|`{Boolean}`|`false`|Enable/Disable Sourcemaps| +|**[`camelCase`](https://github.com/webpack-contrib/css-loader#camelcase)**|`{Boolean\|String}`|`false`|Export Classnames in CamelCase| +|**[`importLoaders`](https://github.com/webpack-contrib/css-loader#importloaders)**|`{Number}`|`0`|Number of loaders applied before CSS loader| |**`localIdentName`**|`{String}`|`[hash:base64]`|Configure the generated ident| + ### `root` For URLs that start with a `/`, the default behavior is to not translate them. From afb00604a355f819e41552d459ac11518af2baf3 Mon Sep 17 00:00:00 2001 From: Diego Faria Date: Mon, 11 Sep 2017 14:13:30 +0200 Subject: [PATCH 2/2] refactor links --- README.md | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index bfc3afd5..4c93db5f 100644 --- a/README.md +++ b/README.md @@ -94,18 +94,17 @@ It's useful when you, for instance, need to post process the CSS as a string. |Name|Type|Default|Description| |:--:|:--:|:-----:|:----------| -|**[`root`](https://github.com/webpack-contrib/css-loader#root)**|`{String}`|`/`|Path to resolve URLs, URLs starting with `/` will not be translated| -|**[`url`](https://github.com/webpack-contrib/css-loader#url)**|`{Boolean}`|`true`| Enable/Disable `url()` handling| -|**[`alias`](https://github.com/webpack-contrib/css-loader#alias)**|`{Object}`|`{}`|Create aliases to import certain modules more easily| -|**[`import`](https://github.com/webpack-contrib/css-loader#import)** |`{Boolean}`|`true`| Enable/Disable @import handling| -|**[`modules`](https://github.com/webpack-contrib/css-loader#modules)**|`{Boolean}`|`false`|Enable/Disable CSS Modules| -|**[`minimize`](https://github.com/webpack-contrib/css-loader#minimize)**|`{Boolean\|Object}`|`false`|Enable/Disable minification| -|**[`sourceMap`](https://github.com/webpack-contrib/css-loader#sourcemap)**|`{Boolean}`|`false`|Enable/Disable Sourcemaps| -|**[`camelCase`](https://github.com/webpack-contrib/css-loader#camelcase)**|`{Boolean\|String}`|`false`|Export Classnames in CamelCase| -|**[`importLoaders`](https://github.com/webpack-contrib/css-loader#importloaders)**|`{Number}`|`0`|Number of loaders applied before CSS loader| +|**[`root`](#root)**|`{String}`|`/`|Path to resolve URLs, URLs starting with `/` will not be translated| +|**[`url`](#url)**|`{Boolean}`|`true`| Enable/Disable `url()` handling| +|**[`alias`](#alias)**|`{Object}`|`{}`|Create aliases to import certain modules more easily| +|**[`import`](#import)** |`{Boolean}`|`true`| Enable/Disable @import handling| +|**[`modules`](#modules)**|`{Boolean}`|`false`|Enable/Disable CSS Modules| +|**[`minimize`](#minimize)**|`{Boolean\|Object}`|`false`|Enable/Disable minification| +|**[`sourceMap`](#sourcemap)**|`{Boolean}`|`false`|Enable/Disable Sourcemaps| +|**[`camelCase`](#camelcase)**|`{Boolean\|String}`|`false`|Export Classnames in CamelCase| +|**[`importLoaders`](#importloaders)**|`{Number}`|`0`|Number of loaders applied before CSS loader| |**`localIdentName`**|`{String}`|`[hash:base64]`|Configure the generated ident| - ### `root` For URLs that start with a `/`, the default behavior is to not translate them.