This script helps to batch generate vue templates from svg files
- Run
npm install
to install dependencies - Place svg files under
input
directory - Run
npm run svg2vue
and vue templates would be generated tooutput
directory - You can set input and output directories by running
npm run svg2vue <path/to/input/directory> <path/to/output/directory>
- You can also choose to generate jsx with
npm run svg2jsx