A gulp plugin that takes a bunch of image files and creates a CSS file in which these are referenced as background-images.
gulp-image2cssref as a development dependency:
npm install --save-dev gulp-image2cssref
Then, add it to your
var image2cssref = ;gulp;
This example would generate one CSS file
my-pngs.css with the following structure:
The name of the CSS file which should be generated.
The CSS selector namespace. Example: 'foo', generates: '.foo.foo-'
The baseDir in which the referenced images are placed (should be relative to the path of the CSS file).