0.1.5 • Published 2 years ago

@fuyoo/svg2vue v0.1.5

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

svg2vue

a command line tool to transform svg file to vue component, support vue2/3.

features

  • vue2/3
  • configure

use

  • install pnpm i @fuyoo/svg2vue -D
  • create a config file .svg2vue.json at the project root path
  • add script in package.json "svg2vue":"svg2vue"
  • npm run svg2vue

config

  • in svg file path default project/src/asserts/svg
  • out components path default project/src/components/SvgIcon
  • lang ts syntax support such as <script lang="ts"> default ts
  • overwirte if the component has been exists, is the tools should to do overwrite action. default false
{
  "in": "svg",
  "out": "dev",
  "lang": "ts",
  "overwrite": false
}
0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago