drublic / gulp-css-background-remove

Remove `background-image` from CSS file to load asynchron
MIT License
5 stars 1 forks source link

Make it possible to get a stream from the image properties. #1

Closed thiagorb closed 8 years ago

thiagorb commented 8 years ago

Hey Hans! I was using your plugin, but felt the need of having the images CSS streamed, so I could use other plugins before saving the final CSS. This implementation makes it possible by returning an extended object which contains the method images. This method accepts a callback, and invoke it passing the images CSS stream as a parameter. I added also an option writeImagesFile, which when set to false, prevents the file to be written.

drublic commented 8 years ago

Thanks, @thiagorb! Makes sense I have merged this. I've also done a new release.