gabrielflorit / gulp-smoosher

Inline css and js links with file contents
MIT License
35 stars 6 forks source link

Inline images to base64 #11

Open simonzack opened 9 years ago

simonzack commented 9 years ago

Could this be considered?

gabrielflorit commented 9 years ago

Maybe - could you post an example of how you envision the workflow?

simonzack commented 9 years ago

I'm using this with gulp to build userscripts (greasemonkey). User scripts don't support images (or any local resources at all, really), so they need to be bundled in the html.

gabrielflorit commented 9 years ago

I'd recommend you inline the images before you pass them to smoosher, with something like https://github.com/Wenqer/gulp-base64.

simonzack commented 9 years ago

@gabrielflorit That's for stylesheets. I'm after inlining images in html, i.e. <img> tags.

gabrielflorit commented 9 years ago

Oh I see. Interesting. There's gotta be a plugin for that. It should be separate from this one. Looking.

jgwconsulting commented 9 years ago

Here's one: https://github.com/zckrs/gulp-css-base64

gabrielflorit commented 9 years ago

@jgwconsulting that's for stylesheets.

jeromewilson commented 9 years ago

Oops, it would help if I could read properly! Maybe this one: https://github.com/rabidaudio/gulp-inline-image-html