Skip to content

Commit b8c61a1

Browse files
committed
added disableStructuralMinification documentation
1 parent 63adb8a commit b8c61a1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ var css = require("css!./file.css");
1313
// => returns css code from file.css, resolves imports and url(...)
1414
```
1515

16-
css code will be minimized if specified by the module system.
17-
1816
`@import` and `url(...)` are interpreted like `require()` and will be resolved by the css-loader.
1917
Good loaders for requiring your assets are the [file-loader](https://github.com/webpack/file-loader)
2018
and the [url-loader](https://github.com/webpack/url-loader) which you should specify in your config (see below).
@@ -60,6 +58,12 @@ The result is:
6058

6159
* `url(/image.png)` => `require("./image.png")`
6260

61+
### Minification
62+
63+
By default the css-loader minimizes the css if specified by the module system.
64+
65+
In some cases the structural minification is destructive to the css, so you can disable it with the `disableStructuralMinification` query parameter. `require("css-loader?disableStructuralMinification!./file.css")`
66+
6367
## License
6468

6569
MIT (http://www.opensource.org/licenses/mit-license.php)

0 commit comments

Comments
 (0)