@web/rollup-plugin-html 1.10.0 → 1.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/input/addRollupInput.d.ts.map +1 -1
- package/dist/input/addRollupInput.js +5 -1
- package/dist/input/addRollupInput.js.map +1 -1
- package/dist/input/extract/extractModules.js +1 -1
- package/dist/output/getOutputHTML.js +1 -1
- package/dist/output/getOutputHTML.js.map +1 -1
- package/package.json +3 -2
- package/src/input/addRollupInput.ts +4 -1
- package/src/input/extract/extractModules.ts +1 -1
- package/src/output/getOutputHTML.ts +1 -1
- package/CHANGELOG.md +0 -183
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addRollupInput.d.ts","sourceRoot":"","sources":["../../src/input/addRollupInput.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAW7D,wBAAgB,cAAc,CAC5B,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,eAAe,EAAE,GAChC,YAAY,
|
|
1
|
+
{"version":3,"file":"addRollupInput.d.ts","sourceRoot":"","sources":["../../src/input/addRollupInput.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAW7D,wBAAgB,cAAc,CAC5B,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,eAAe,EAAE,GAChC,YAAY,CAuCd"}
|
|
@@ -10,13 +10,17 @@ function fromEntries(entries) {
|
|
|
10
10
|
return obj;
|
|
11
11
|
}
|
|
12
12
|
function addRollupInput(inputOptions, inputModuleIds) {
|
|
13
|
+
var _a;
|
|
13
14
|
// Add input module ids to existing input option, whether it's a string, array or object
|
|
14
15
|
// this way you can use multiple html plugins all adding their own inputs
|
|
15
16
|
if (!inputOptions.input) {
|
|
16
17
|
return Object.assign(Object.assign({}, inputOptions), { input: inputModuleIds.map(mod => mod.importPath) });
|
|
17
18
|
}
|
|
18
19
|
if (typeof inputOptions.input === 'string') {
|
|
19
|
-
return Object.assign(Object.assign({}, inputOptions), { input: [
|
|
20
|
+
return Object.assign(Object.assign({}, inputOptions), { input: [
|
|
21
|
+
...(((_a = inputOptions === null || inputOptions === void 0 ? void 0 : inputOptions.input) === null || _a === void 0 ? void 0 : _a.endsWith('.html')) ? [] : [inputOptions.input]),
|
|
22
|
+
...inputModuleIds.map(mod => mod.importPath),
|
|
23
|
+
] });
|
|
20
24
|
}
|
|
21
25
|
if (Array.isArray(inputOptions.input)) {
|
|
22
26
|
return Object.assign(Object.assign({}, inputOptions), { input: [...inputOptions.input, ...inputModuleIds.map(mod => mod.importPath)] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addRollupInput.js","sourceRoot":"","sources":["../../src/input/addRollupInput.ts"],"names":[],"mappings":";;;AAEA,oCAAuC;AAEvC,SAAS,WAAW,CAAI,OAAsB;IAC5C,MAAM,GAAG,GAAsB,EAAE,CAAC;IAClC,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,OAAO,EAAE;QAC5B,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;KACZ;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,SAAgB,cAAc,CAC5B,YAA0B,EAC1B,cAAiC
|
|
1
|
+
{"version":3,"file":"addRollupInput.js","sourceRoot":"","sources":["../../src/input/addRollupInput.ts"],"names":[],"mappings":";;;AAEA,oCAAuC;AAEvC,SAAS,WAAW,CAAI,OAAsB;IAC5C,MAAM,GAAG,GAAsB,EAAE,CAAC;IAClC,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,OAAO,EAAE;QAC5B,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;KACZ;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,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AAC,CAAC,CAAC,CAC1D,KAEH;KACH;IAED,MAAM,mBAAW,CAAC,2EAA2E,CAAC,CAAC;AACjG,CAAC;AA1CD,wCA0CC"}
|
|
@@ -10,7 +10,7 @@ const crypto_1 = __importDefault(require("crypto"));
|
|
|
10
10
|
const utils_1 = require("../../assets/utils");
|
|
11
11
|
const parse5_utils_2 = require("@web/parse5-utils");
|
|
12
12
|
function createContentHash(content) {
|
|
13
|
-
return crypto_1.default.createHash('
|
|
13
|
+
return crypto_1.default.createHash('md5').update(content).digest('hex');
|
|
14
14
|
}
|
|
15
15
|
function isAbsolute(src) {
|
|
16
16
|
try {
|
|
@@ -69,7 +69,7 @@ async function getOutputHTML(params) {
|
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
if (pluginOptions.minify) {
|
|
72
|
-
outputHtml = html_minifier_terser_1.minify(outputHtml, {
|
|
72
|
+
outputHtml = await html_minifier_terser_1.minify(outputHtml, {
|
|
73
73
|
collapseWhitespace: true,
|
|
74
74
|
removeComments: true,
|
|
75
75
|
removeRedundantAttributes: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getOutputHTML.js","sourceRoot":"","sources":["../../src/output/getOutputHTML.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,mDAAgD;AAOhD,mCAA0C;AAC1C,+DAAgE;AAChE,2EAAwE;AAExE,mEAAgE;AAChE,2DAAwD;AACxD,uFAAoF;AAgB7E,KAAK,UAAU,aAAa,CAAC,MAA2B;IAC7D,MAAM,EACJ,aAAa,EACb,iBAAiB,EACjB,wBAAwB,EACxB,KAAK,EACL,SAAS,EACT,aAAa,EACb,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,GACvB,GAAG,MAAM,CAAC;IACX,MAAM,EAAE,OAAO,EAAE,aAAa,KAAsB,iBAAiB,EAAlC,YAAY,UAAK,iBAAiB,EAA/D,WAA2C,CAAoB,CAAC;IACtE,MAAM,EA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IAAI,sBAAsB,EAAE;QAC1B,QAAQ,GAAG,cAAK,CAAC,UAAU,CAAC,CAAC;QAC7B,qCAAiB,CAAC,QAAQ,CAAC,CAAC;QAC5B,UAAU,GAAG,kBAAS,CAAC,QAAQ,CAAC,CAAC;KAClC;IAED,OAAO,UAAU,CAAC;AACpB,CAAC;AArFD,sCAqFC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@web/rollup-plugin-html",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"parse5": "^6.0.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"
|
|
52
|
+
"@types/html-minifier-terser": "^6.0.0",
|
|
53
|
+
"rollup": "^2.66.1"
|
|
53
54
|
}
|
|
54
55
|
}
|
|
@@ -23,7 +23,10 @@ export function addRollupInput(
|
|
|
23
23
|
if (typeof inputOptions.input === 'string') {
|
|
24
24
|
return {
|
|
25
25
|
...inputOptions,
|
|
26
|
-
input: [
|
|
26
|
+
input: [
|
|
27
|
+
...(inputOptions?.input?.endsWith('.html') ? [] : [inputOptions.input]),
|
|
28
|
+
...inputModuleIds.map(mod => mod.importPath),
|
|
29
|
+
],
|
|
27
30
|
};
|
|
28
31
|
}
|
|
29
32
|
|
|
@@ -14,7 +14,7 @@ export interface ExtractModulesParams {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
function createContentHash(content: string) {
|
|
17
|
-
return crypto.createHash('
|
|
17
|
+
return crypto.createHash('md5').update(content).digest('hex');
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
function isAbsolute(src: string) {
|
|
@@ -93,7 +93,7 @@ export async function getOutputHTML(params: GetOutputHTMLParams) {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
if (pluginOptions.minify) {
|
|
96
|
-
outputHtml = minifyHTMLFunc(outputHtml, {
|
|
96
|
+
outputHtml = await minifyHTMLFunc(outputHtml, {
|
|
97
97
|
collapseWhitespace: true,
|
|
98
98
|
removeComments: true,
|
|
99
99
|
removeRedundantAttributes: true,
|
package/CHANGELOG.md
DELETED
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
# @web/rollup-plugin-html
|
|
2
|
-
|
|
3
|
-
## 1.10.0
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- b57f36de: Update dependency html-minifier-terser to 6.0.0
|
|
8
|
-
|
|
9
|
-
## 1.9.1
|
|
10
|
-
|
|
11
|
-
### Patch Changes
|
|
12
|
-
|
|
13
|
-
- ca749b0e: Update dependency @types/parse5 to v6
|
|
14
|
-
- Updated dependencies [ca749b0e]
|
|
15
|
-
- @web/parse5-utils@1.3.0
|
|
16
|
-
|
|
17
|
-
## 1.9.0
|
|
18
|
-
|
|
19
|
-
### Minor Changes
|
|
20
|
-
|
|
21
|
-
- 075afcf9: Add `exclude` option. Used e.g. to ignore html file assets when bundling.
|
|
22
|
-
|
|
23
|
-
## 1.8.0
|
|
24
|
-
|
|
25
|
-
### Minor Changes
|
|
26
|
-
|
|
27
|
-
- 7c4dd6cd: Support `picture` tags by handling `source` tags with `srcset` attributes.
|
|
28
|
-
|
|
29
|
-
Example of supported html
|
|
30
|
-
|
|
31
|
-
```html
|
|
32
|
-
<picture>
|
|
33
|
-
<source type="image/avif" srcset="small.avif 30w, big.avif 60w" sizes="30px" />
|
|
34
|
-
<source type="image/jpeg" srcset="small.jpeg 30w, big.jpeg 60w" sizes="30px" />
|
|
35
|
-
<img alt="..." src="small.jpeg" width="30" height="15" loading="lazy" decoding="async" />
|
|
36
|
-
</picture>
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
## 1.7.0
|
|
40
|
-
|
|
41
|
-
### Minor Changes
|
|
42
|
-
|
|
43
|
-
- be919633: add minify option
|
|
44
|
-
|
|
45
|
-
### Patch Changes
|
|
46
|
-
|
|
47
|
-
- e331e429: fix(rollup-plugin-html): fix linked assets not being prefixed with configured publicPath. See https://github.com/modernweb-dev/web/issues/1302
|
|
48
|
-
|
|
49
|
-
## 1.6.0
|
|
50
|
-
|
|
51
|
-
### Minor Changes
|
|
52
|
-
|
|
53
|
-
- 7d0e28c2: Preserve attributes on html script tags.
|
|
54
|
-
|
|
55
|
-
Input:
|
|
56
|
-
|
|
57
|
-
```html
|
|
58
|
-
<script type="module" src="..." some="attribute">
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
Output before:
|
|
62
|
-
|
|
63
|
-
```html
|
|
64
|
-
<script type="module" src="...">
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
Output now:
|
|
68
|
-
|
|
69
|
-
```html
|
|
70
|
-
<script type="module" src="..." some="attribute">
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
## 1.5.0
|
|
74
|
-
|
|
75
|
-
### Minor Changes
|
|
76
|
-
|
|
77
|
-
- 5688eb5b: Add option to scan for inline scripts in HTML assets, and insert a CSP meta tag to allow them executing with strict CSP rules.
|
|
78
|
-
|
|
79
|
-
### Patch Changes
|
|
80
|
-
|
|
81
|
-
- Updated dependencies [a07f4aef]
|
|
82
|
-
- @web/parse5-utils@1.2.2
|
|
83
|
-
|
|
84
|
-
## 1.4.0
|
|
85
|
-
|
|
86
|
-
### Minor Changes
|
|
87
|
-
|
|
88
|
-
- 58d78c33: Add option `absolutePathPrefix` to support subfolders deployments if absolute urls are used
|
|
89
|
-
|
|
90
|
-
## 1.3.3
|
|
91
|
-
|
|
92
|
-
### Patch Changes
|
|
93
|
-
|
|
94
|
-
- 1f4a2ab3: Adds an `injectServiceWorker` and `serviceWorkerPath` option which if provided will inject a service worker registration script into html files.
|
|
95
|
-
|
|
96
|
-
## 1.3.2
|
|
97
|
-
|
|
98
|
-
### Patch Changes
|
|
99
|
-
|
|
100
|
-
- 05dd36f: fix entryoint for node v10
|
|
101
|
-
|
|
102
|
-
## 1.3.1
|
|
103
|
-
|
|
104
|
-
### Patch Changes
|
|
105
|
-
|
|
106
|
-
- 53ba8db: ignore scripts with absolute paths
|
|
107
|
-
|
|
108
|
-
## 1.3.0
|
|
109
|
-
|
|
110
|
-
### Minor Changes
|
|
111
|
-
|
|
112
|
-
- ac2e832: Allow for an `absoluteBaseUrl` setting which will convert absolute URLs to full absolute URLs for the following tags.
|
|
113
|
-
|
|
114
|
-
```html
|
|
115
|
-
<!-- FROM -->
|
|
116
|
-
<meta property="og:image" content="./images/image-social.png" />
|
|
117
|
-
<link rel="canonical" href="/guides/" />
|
|
118
|
-
<meta property="og:url" content="/guides/" />
|
|
119
|
-
|
|
120
|
-
<!-- TO -->
|
|
121
|
-
<meta property="og:image" content="https://domain.com/assets/image-social-xxx.png" />
|
|
122
|
-
<link rel="canonical" href="https://domain.com/guides/" />
|
|
123
|
-
<meta property="og:url" content="https://domain.com/guides/" />
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
### Patch Changes
|
|
127
|
-
|
|
128
|
-
- de5d396: Identify `<meta property="og:image"` as an asset
|
|
129
|
-
|
|
130
|
-
## 1.2.1
|
|
131
|
-
|
|
132
|
-
### Patch Changes
|
|
133
|
-
|
|
134
|
-
- cfdeb98: - do not touch `<script>` tags with inline content/code
|
|
135
|
-
- treat `<script src="...">` tags as assets
|
|
136
|
-
|
|
137
|
-
## 1.2.0
|
|
138
|
-
|
|
139
|
-
### Minor Changes
|
|
140
|
-
|
|
141
|
-
- 23fadf2: allow disabling default inject behavior
|
|
142
|
-
|
|
143
|
-
### Patch Changes
|
|
144
|
-
|
|
145
|
-
- Updated dependencies [a7c9af6]
|
|
146
|
-
- @web/parse5-utils@1.1.2
|
|
147
|
-
|
|
148
|
-
## 1.1.1
|
|
149
|
-
|
|
150
|
-
### Patch Changes
|
|
151
|
-
|
|
152
|
-
- d804089: don't hash social media and browser assets
|
|
153
|
-
- 717c415: Prevent remote URLs from counting as assets
|
|
154
|
-
- 9e18d84: write asset paths relative to HTML file
|
|
155
|
-
|
|
156
|
-
## 1.1.0
|
|
157
|
-
|
|
158
|
-
### Minor Changes
|
|
159
|
-
|
|
160
|
-
- 50ba2d6: watch referenced assets
|
|
161
|
-
|
|
162
|
-
## 1.0.2
|
|
163
|
-
|
|
164
|
-
### Patch Changes
|
|
165
|
-
|
|
166
|
-
- d130352: bundle referenced HTML assets
|
|
167
|
-
|
|
168
|
-
## 1.0.1
|
|
169
|
-
|
|
170
|
-
### Patch Changes
|
|
171
|
-
|
|
172
|
-
- 12da341: remove prepublish script
|
|
173
|
-
|
|
174
|
-
## 1.0.0
|
|
175
|
-
|
|
176
|
-
### Major Changes
|
|
177
|
-
|
|
178
|
-
- 3121966: First release
|
|
179
|
-
|
|
180
|
-
### Patch Changes
|
|
181
|
-
|
|
182
|
-
- Updated dependencies [3121966]
|
|
183
|
-
- @web/parse5-utils@1.1.0
|