svg-sprite / gulp-svg-sprite

SVG sprites & stacks galore — Gulp plugin wrapping around svg-sprite that reads in a bunch of SVG files, optimizes them and creates SVG sprites and CSS resources in various flavours
MIT License
647 stars 43 forks source link

How to specify an scss template #10

Closed RobertCordes closed 9 years ago

RobertCordes commented 9 years ago

Hey,

how can I specify the scss template to be used? And can I also configure the destination for the generated scss file or should I just move afterwards?

Thanks in advance, Robert

jkphl commented 9 years ago

You can control all aspects of the creation process in advance:

var config = {
    mode: {
        css: {
            render: {
                scss: {
                    template: 'path/to/scss/template/relative/to/dest/dir',
                    dest: 'dest/to/created/scss/file/relative/to/dest/dir'
                }
            }
        }
    }
}

Please see the documentation for further details on rendering configurations.

RobertCordes commented 9 years ago

Thanks @jkphl, that helped.

jkphl commented 9 years ago

You're welcome! :+1:

thalesfsp commented 9 years ago

Hello @jkphl Do you have any update about the native PNG fallback support? Cheers!

jkphl commented 9 years ago

@thalesfsp I'm very sorry but no, not yet. There are new versions of node-iconizr and grunt-iconizr in the dev trees, but unfortunately I'm so utterly lacking time that I don't manage to write a proper documentation and release them finally. The Gulp plugin shouldn't be that much work then, though. I'll try to do my best ...