-
Notifications
You must be signed in to change notification settings - Fork 0
/
compositor.json
143 lines (143 loc) · 4.92 KB
/
compositor.json
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
{
"name": "tmpst/rollup-plugin-minifyliterals",
"version": "0.1.4",
"libraries": {
"xv": "^1.1.25"
},
"title": "",
"branch": "",
"style": {
"name": "Default",
"componentSet": {
"nav": "nav/BasicNav",
"header": "header/BannerHeader",
"article": "article/BasicArticle",
"footer": "footer/BasicFooter"
},
"fontFamily": "-apple-system, BlinkMacSystemFont, sans-serif",
"fontWeight": 400,
"bold": 600,
"lineHeight": 1.5,
"typeScale": [
72,
48,
24,
20,
16,
14,
12
],
"monospace": "Menlo, monospace",
"heading": {
"fontFamily": null,
"fontStyle": null,
"fontWeight": 600,
"lineHeight": 1.25,
"textTransform": null,
"letterSpacing": null
},
"h0": {},
"h1": {},
"h2": {},
"h3": {},
"h4": {},
"h5": {},
"h6": {},
"alternativeText": {},
"space": [
0,
8,
16,
32,
48,
64,
96
],
"layout": {
"maxWidth": 1024,
"centered": false
},
"colors": {
"text": "#111",
"background": "#fff",
"primary": "#08e",
"secondary": "#059",
"highlight": "#e08",
"border": "#ddd",
"muted": "#eee"
},
"border": {
"width": 1,
"radius": 2
},
"link": {},
"button": {
"hover": {
"boxShadow": "inset 0 0 0 999px rgba(0, 0, 0, .125)"
}
},
"input": {},
"body": {
"margin": 0
},
"breakpoints": {
"xs": "@media screen and (max-width:40em)",
"sm": "@media screen and (min-width:40em)",
"md": "@media screen and (min-width:52em)",
"lg": "@media screen and (min-width:64em)"
}
},
"content": [
{
"component": "nav",
"links": [
{
"href": "https://github.com/tmpst/rollup-plugin-minifyliterals",
"text": "GitHub"
},
{
"href": "https://npmjs.com/package/rollup-plugin-minifyliterals",
"text": "npm"
}
]
},
{
"component": "header",
"heading": "rollup-plugin-minifyliterals",
"subhead": "Minify html in template literals",
"children": [
{
"component": "ui/TweetButton",
"text": "rollup-plugin-minifyliterals: Minify html in template literals",
"url": ""
},
{
"component": "ui/GithubButton",
"user": "tmpst",
"repo": "rollup-plugin-minifyliterals"
}
],
"text": "v1.0.0"
},
{
"component": "article",
"metadata": {
"source": "github.readme"
},
"html": "\n<p>Minify html in template literals using html-minifier.</p>\n<p>Experimental support for minifying templates literals that have already been transpiled (i.e. string concatenation).</p>\n<h2>Installation</h2>\n<pre>npm install --save-dev rollup-plugin-minifyliterals</pre><h2>Usage</h2>\n<p>For best results run before transpiling to es5. This will allow you to send\nextra options to through to html-minifier.</p>\n<pre><span class=\"hljs-comment\">// rollup.config.js</span>\n<span class=\"hljs-keyword\">import</span> minifyliterals <span class=\"hljs-keyword\">from</span> <span class=\"hljs-string\">'rollup-plugin-minifyliterals'</span>\n<span class=\"hljs-keyword\">import</span> buble <span class=\"hljs-keyword\">from</span> <span class=\"hljs-string\">'buble'</span>\n\n<span class=\"hljs-keyword\">export</span> <span class=\"hljs-keyword\">default</span> {\n <span class=\"hljs-attr\">entry</span>: <span class=\"hljs-string\">'src/index.js'</span>,\n <span class=\"hljs-attr\">dest</span>: <span class=\"hljs-string\">'dist/my-lib.js'</span>,\n <span class=\"hljs-attr\">plugins</span>: [\n minifyliterals({\n <span class=\"hljs-comment\">// set this to `false` if you're not using sourcemaps –</span>\n <span class=\"hljs-comment\">// defaults to `true`</span>\n sourceMap: <span class=\"hljs-literal\">true</span>,\n <span class=\"hljs-comment\">// optionally pass through options to html-minifier -</span>\n <span class=\"hljs-comment\">// defaults to `{ collapseWhitespace: true }`</span>\n htmlminifier: {\n <span class=\"hljs-attr\">removeRedundantAttributes</span>: <span class=\"hljs-literal\">true</span>\n },\n <span class=\"hljs-comment\">// optionally process transpiled template literals -</span>\n <span class=\"hljs-comment\">// defaults to false (experimental, not widely tested)</span>\n literals: <span class=\"hljs-literal\">true</span>\n }),\n buble()\n ]\n}</pre><h2>License</h2>\n<p>MIT</p>\n"
},
{
"component": "footer",
"links": [
{
"href": "https://github.com/tmpst/rollup-plugin-minifyliterals",
"text": "GitHub"
},
{
"href": "https://github.com/tmpst",
"text": "tmpst"
}
]
}
]
}