shakyShane / gulp-svg-sprites

Create SVG sprites or compile to <symbols>
MIT License
334 stars 45 forks source link

Avoid generating CSS file #107

Open VPenkov opened 7 years ago

VPenkov commented 7 years ago

I love this module but I'd like to avoid having a generated CSS file. Is there any way I can do that?

runepiper commented 6 years ago

preview: false should do the trick.

mistergraphx commented 5 years ago

As @VPenkov says, even if i only need a scss partials file generated with the sprite, a css file is outputed too in the same folder.

If we use a custom template and scss partial maybe we could asume that the css file could be ommit in most cases.

Reading the code maybe a preview.css = false (or path to css specific dest) configuration option here could do the trick without breaking changes ? : https://github.com/shakyShane/gulp-svg-sprites/blob/master/index.js#L313