Post
Build Awesome (11ty)
11ty.dev
did:plc:i3khfmz4tvrcu7fwrdoqr4u2
Surfacing a hidden feature in Eleventy’s Bundle Plugin: `bundleHtmlContentFromSelector` to bundle HTML content!
`bundleHtmlContentFromSelector: "style"` to bundle <style> nodes or "script" to bundle <script> nodes.
https://www.11ty.dev/docs/plugins/bundle/#bundling-html-node-content
Example: https://github.com/11ty/eleventy-base-blog/blob/977d950fa73bd609338393b3cb29c21e39e63dbe/eleventy.config.js#L34-L49
2025-06-10T21:16:18.046Z