slue-spritesmith

1.1.1 • Public • Published

slue-spritesmith

Slue plugin to concat icons by scan some css files, and then to modify the css file.

Usage

const slue = require('slue');
const slueSpriteSmith = require('slue-spritesmith');
 
slue.task('spritesmith', function() {
    return slue.read('./src/**/*.css')
        .pipe(slueSpritesmith({
            // the path of source icons
            imagePath: './src/assets/images/sprite',
            // the path of the concated image
            spritePath: './dev/assets/images/sprite.png',
            // where the midified files to save
            cssPath: './dev'
        }))
});

Readme

Keywords

none

Package Sidebar

Install

npm i slue-spritesmith

Weekly Downloads

3

Version

1.1.1

License

ISC

Unpacked Size

12.9 kB

Total Files

10

Last publish

Collaborators

  • songgenlei