svg-sprite / svg-sprite

SVG sprites & stacks galore — A low-level Node.js module that takes a bunch of SVG files, optimizes them and bakes them into SVG sprites of several types along with suitable stylesheet resources (e.g. CSS, Sass, LESS, Stylus, etc.)

Home Page:https://github.com/svg-sprite/svg-sprite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CLI doesn't seem to work?

soluml opened this issue · comments

I haven't been able to get this plugin to generate anything via CLI. Even trying something as simple as the below. Every seemingly valid command fails silently.

I've tried following the CLI docs and I can see the bin in the node_modules dir, but is this mode still supported?

"scripts": {
    "sprite": "svg-sprite  '**/*.svg'"
}

Hi! You should read the docs more carefully. In your case you neither provide any config file or any options (mode is most important). CLI is silent by default. You can add log option to see what is really happening. This all is in the docs.