Skip to content

Commit 77cc7f2

Browse files
committed
updated css minimize documentation
#46
1 parent d159860 commit 77cc7f2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,14 @@ require("css-loader!...")
8888

8989
By default the css-loader minimizes the css if specified by the module system.
9090

91-
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")`
91+
In some cases the minification is destructive to the css, so you can provide some options to it. clean-css is used for minification and you find a [list of options here](https://github.com/jakubpawlowicz/clean-css#how-to-use-clean-css-programmatically). Just provide them as query parameter: i. e. `require("css-loader?-restructuring&compatibility")` to disable restructuring and enable compatibility mode.
9292

9393
You can also disable or enforce minification with the `minimize` query parameter.
9494

9595
`require("css-loader?minimize!./file.css")` (enforced)
9696

9797
`require("css-loader?-minimize!./file.css")` (disabled)
9898

99-
You cannot use minimize with SourceMaps.
100-
10199
## License
102100

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

0 commit comments

Comments
 (0)