gobwas / gulp-sprite-generator

Plugin that generate sprites from your stylesheets.
42 stars 16 forks source link

spriteSheetName #10

Closed xingmolu closed 8 years ago

xingmolu commented 9 years ago

Hi! I plan to generate a sprite for each css file, so sprite name need to set css filename。

spriteOutput = gulp.src(cssPath + "/*.css")
        .pipe(sprite({
            baseUrl: 'webapp/src/images/',
            spriteSheetName: '??.png', // set by the css filename。
            spriteSheetPath: '../images',
            filter: [
                function(image) {
                    return !image.meta.skip;
                }
            ]
        }));

I am a Chinese, not very good at English, please forgive me, thank you!

gobwas commented 9 years ago

Will do it soon, thanks )

xingmolu commented 9 years ago

THX, I've switched to sass, not so anxious before