-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathindex.js
33 lines (32 loc) · 982 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
* rehype plugin to minify `content` attributes on `<meta>` elements.
*
* ## What is this?
*
* This package is a plugin that can minify the value of the `content` attribute
* of `<meta>` elements.
*
* Note that `meta[name=theme-color]` and `meta[name=msapplication-TileColor]`
* are handled by
* [`rehype-minify-meta-color`](https://github.com/rehypejs/rehype-minify/tree/main/packages/rehype-minify-meta-color).
*
* ## When should I use this?
*
* You can use this plugin when you want to improve the size of HTML documents.
*
* ## API
*
* ### `unified().use(rehypeMinifyMetaContent)`
*
* Minify `content` attributes on `meta` elements.
*
* ###### Returns
*
* Transform ([`Transformer`](https://github.com/unifiedjs/unified#transformer)).
*
* @example
* {}
* <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
* <meta name="keywords" content="foo, bar baz, qux">
*/
export {default} from './lib/index.js'