remy / inliner

Node utility to inline images, CSS and JavaScript for a web page - useful for mobile sites
MIT License
1.1k stars 165 forks source link

Feature request: Support for html imports #128

Closed niklas-dahl closed 7 years ago

niklas-dahl commented 7 years ago

Html imports enable you to import html with html:

<link rel="import" href="/path/to/imports/stuff.html">

The Polymer project uses them a lot for their webcomponents so it would be awesome if this inliner could understand them and inline them aswell.

Thanks.

remy commented 7 years ago

I appreciate this was months ago, but do you want to take a shot at a PR? The tests are very easy to setup (follow the contributing doc - just need two HTML files). Thanks so much!