gulp-inline icon indicating copy to clipboard operation
gulp-inline copied to clipboard

Support user-defined custom tags in `typeMap`

Open timkendrick opened this issue 9 years ago • 1 comments

I'd love to be able to use gulp-inline to inline different content types based on user-defined tag definitions.

In my case, I need to inline Polymer web component definitions (via <link rel="import"> tags) – but I can see this being really handy for more application-specific use cases (e.g. a custom <i18n key="foo"> tag definition).

Any chance of allowing a custom typeMap to be passed as an option?

timkendrick avatar Jun 01 '16 13:06 timkendrick

+1ish...

Alternatively, it would be great to target an attribute like href=*.png, or even better, any reference to *.png.

My motivation is because of favicons:

<meta name="msapplication-TileImage" content="/assets/images/branding/favicons/mstile-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/assets/images/branding/favicons/apple-touch-icon-152x152.png">

k-funk avatar Sep 03 '16 00:09 k-funk