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
Copy file name to clipboardExpand all lines: docs/docs/building/rollup-plugin-html.md
+35-6Lines changed: 35 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -273,7 +273,7 @@ export default {
273
273
};
274
274
```
275
275
276
-
### Minification
276
+
### HTML minification
277
277
278
278
Set the minify option to do default HTML minification. If you need custom options, you can implement your own minifier using the `transformHtml` option.
279
279
@@ -292,6 +292,31 @@ export default {
292
292
};
293
293
```
294
294
295
+
### CSS bundling and minification
296
+
297
+
It's implemented via [Lightning CSS](https://lightningcss.dev/).
298
+
It works when `extractAssets: true` and CSS files are extracted.
299
+
300
+
CSS bundling is enabled by default.
301
+
Set `bundleCss: false` to disable it.
302
+
303
+
CSS minification can be enabled by setting `minifyCss: true`.
/** Whether to bundle extracted CSS assets. Bundling is done via Lightning CSS. Defaults to true. */
424
+
bundleCss?:boolean;
425
+
/** Whether to minify extracted CSS assets. Minificaiton is done via Lightning CSS. Defaults to false. */
426
+
minifyCss?:boolean;
398
427
/** Whether to ignore assets referenced in HTML and CSS with glob patterns. */
399
428
externalAssets?:string|string[];
400
429
/** Define a full absolute url to your site (e.g. https://domain.com) */
401
430
absoluteBaseUrl?:string;
402
-
/** Whether to set full absolute urls for ['meta[property=og:image]', 'link[rel=canonical]', 'meta[property=og:url]'] or not. Requires a absoluteBaseUrl to be set. Default to true. */
431
+
/** Whether to set full absolute urls for ['meta[property=og:image]', 'link[rel=canonical]', 'meta[property=og:url]'] or not. Requires a absoluteBaseUrl to be set. Defaults to true. */
403
432
absoluteSocialMediaUrls?:boolean;
404
433
/** Should a service worker registration script be injected. Defaults to false. */
0 commit comments