You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`keep_style_tags`. Specifies whether to keep "style" tags after inlining. Default: `false`
128
128
-`keep_link_tags`. Specifies whether to keep "link" tags after inlining. Default: `false`
129
129
-`keep_at_rules`. Specifies whether to keep "at-rules" (starting with `@`) after inlining. Default: `false`
130
+
-`minify_css`. Specifies whether to remove trailing semicolons and spaces between properties and values. Default: `false`
130
131
-`base_url`. The base URL used to resolve relative URLs. If you'd like to load stylesheets from your filesystem, use the `file://` scheme. Default: `None`
131
132
-`load_remote_stylesheets`. Specifies whether remote stylesheets should be loaded. Default: `true`
132
133
-`cache`. Specifies cache for external stylesheets. Default: `None`
@@ -186,6 +187,19 @@ Such tags will be kept in the resulting HTML even if the `keep_style_tags` optio
186
187
</body>
187
188
```
188
189
190
+
If you set the the `minify_css` option to `true`, the inlined styles will be minified by removing trailing semicolons
191
+
and spaces between properties and values.
192
+
193
+
```html
194
+
<head>
195
+
<!-- With minify_css=true, the <h1> will have `style="color:blue;font-weight:bold"` -->
Copy file name to clipboardExpand all lines: bindings/c/README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -154,6 +154,7 @@ Possible configurations:
154
154
- `keep_style_tags`. Specifies whether to keep "style" tags after inlining. Default: `false`
155
155
- `keep_link_tags`. Specifies whether to keep "link" tags after inlining. Default: `false`
156
156
- `keep_at_rules`. Specifies whether to keep "at-rules" (starting with `@`) after inlining. Default: `false`
157
+
- `minify_css`. Specifies whether to remove trailing semicolons and spaces between properties and values.
157
158
- `base_url`. The base URL used to resolve relative URLs. If you'd like to load stylesheets from your filesystem, use the `file://` scheme. Default: `NULL`
158
159
- `load_remote_stylesheets`. Specifies whether remote stylesheets should be loaded. Default: `true`
159
160
- `cache`. Specifies caching options for external stylesheets. Default: `NULL`
@@ -215,6 +216,19 @@ Such tags will be kept in the resulting HTML even if the `keep_style_tags` optio
215
216
</body>
216
217
```
217
218
219
+
If you set the the `minify_css` option to `true`, the inlined styles will be minified by removing trailing semicolons
220
+
and spaces between properties and values.
221
+
222
+
```html
223
+
<head>
224
+
<!-- With minify_css=true, the <h1> will have `style="color:blue;font-weight:bold"` -->
0 commit comments