Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea 👍 , but could you please check if [name](#root) works ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, it works 😄

|**[`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.
Expand Down