1.0.11 • Published 5 years ago

tiny-gen-sprite v1.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Installation

npm install --save-dev tiny-gen-sprite

Using

All that is needed for the library to work is: 1) Folder with svg files 2) The html page in which the svg sprite will be inserted

Launch occurs through the command line:

gensprite

Work parameters can be specified:

1) Via command line arguments 2) In package.json of your project in "gensprite" property

Parameterclipackage.jsonDefault
The path to the image folder--img or -i"imgFolder"./src/assets/img
Html page path--output or -o"indexPath"./src/index.html
Sprite tag id--spriteId or -s"spriteId"svg-sprite

Core concepts

Tiny gen sprite uses <symbol> way to make svg sprites.

Examples

Launch with command line arguments

gensprite -o="./index.html" --img="./images"

Parametrs in package.json:

{
  "name": "example-project",
  "version": "1.0.0",
  "gensprite": {
    "imgFolder": "./src/images/svg",
    "spriteId": "my-sprite"
  }
}

License

MIT

1.0.11

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.10

5 years ago

1.0.4

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.5

5 years ago

0.0.1

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.4

5 years ago

0.0.0

5 years ago