- 1c0088de: Update Rollup to version 4.
- b6d8bcf2: Update the
glob
dependency
- c185cbaa: Set minimum node version to 18
- Updated dependencies [c185cbaa]
- @web/[email protected]
- f6ba53f0: Export types with package
- febd9d9d: Set node 16 as the minimum version.
- 72c63bc5: Require [email protected] and update all Rollup related dependencies to latest.
- Updated dependencies [febd9d9d]
- @web/[email protected]
- 18a16bb0: Update
html-minifier-terser
- Updated dependencies [18a16bb0]
- @web/[email protected]
-
ab5295e9: Detect
<source src="*">
tags as assets which means videos get copied and hashed.<video controls> <source src="./my-video.mp4" type="video/mp4" /> </video>
- e9508a24: fix: support node 17 & 18 by using md5 hashing
- d1c2ff91: fix(rollup-plugin-html): dont pass index.html to rollup input
- 516ecd3f: Fix html-minimier-terser call to use await
- b57f36de: Update dependency html-minifier-terser to 6.0.0
- ca749b0e: Update dependency @types/parse5 to v6
- Updated dependencies [ca749b0e]
- @web/[email protected]
- 075afcf9: Add
exclude
option. Used e.g. to ignore html file assets when bundling.
-
7c4dd6cd: Support
picture
tags by handlingsource
tags withsrcset
attributes.Example of supported html
<picture> <source type="image/avif" srcset="small.avif 30w, big.avif 60w" sizes="30px" /> <source type="image/jpeg" srcset="small.jpeg 30w, big.jpeg 60w" sizes="30px" /> <img alt="..." src="small.jpeg" width="30" height="15" loading="lazy" decoding="async" /> </picture>
- be919633: add minify option
- e331e429: fix(rollup-plugin-html): fix linked assets not being prefixed with configured publicPath. See modernweb-dev/web#1302
-
7d0e28c2: Preserve attributes on html script tags.
Input:
<script type="module" src="..." some="attribute">
Output before:
<script type="module" src="...">
Output now:
<script type="module" src="..." some="attribute">
- 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.
- Updated dependencies [a07f4aef]
- @web/[email protected]
- 58d78c33: Add option
absolutePathPrefix
to support subfolders deployments if absolute urls are used
- 1f4a2ab3: Adds an
injectServiceWorker
andserviceWorkerPath
option which if provided will inject a service worker registration script into html files.
- 05dd36f: fix entryoint for node v10
- 53ba8db: ignore scripts with absolute paths
-
ac2e832: Allow for an
absoluteBaseUrl
setting which will convert absolute URLs to full absolute URLs for the following tags.<!-- FROM --> <meta property="og:image" content="./images/image-social.png" /> <link rel="canonical" href="/guides/" /> <meta property="og:url" content="/guides/" /> <!-- TO --> <meta property="og:image" content="https://domain.com/assets/image-social-xxx.png" /> <link rel="canonical" href="https://domain.com/guides/" /> <meta property="og:url" content="https://domain.com/guides/" />
- de5d396: Identify
<meta property="og:image"
as an asset
- cfdeb98: - do not touch
<script>
tags with inline content/code- treat
<script src="...">
tags as assets
- treat
- 23fadf2: allow disabling default inject behavior
- Updated dependencies [a7c9af6]
- @web/[email protected]
- d804089: don't hash social media and browser assets
- 717c415: Prevent remote URLs from counting as assets
- 9e18d84: write asset paths relative to HTML file
- 50ba2d6: watch referenced assets
- d130352: bundle referenced HTML assets
- 12da341: remove prepublish script
- 3121966: First release
- Updated dependencies [3121966]
- @web/[email protected]