0.2.5 • Published 2 years ago

nuxt-svg-transformer v0.2.5

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

nuxt-svg-transformer

npm version npm downloads License Nuxt

ci Netlify Status

Nuxt SVG transformer

A Nuxt 3 module to manage SVG as icons, transform SVG to inject dynamically into Vue component, type included.

Features

  • Nuxt 3 support
  • 🔎 Vue component ready with SvgIcon
  • 🔥 Hot reloading when SVG updated
  • 🤙🏻 Reactivity option
  • 🗂 Seperated index SVG files
  • 📦 No import needed, SVG directly injected
  • 🎨 Options to add or clear style and class global attributes
  • 🦾 SVG typed, validate by name prop (typescript required)

Usage

See documentation.

Local

Installation

  • Clone repository
  • Install dependencies using pnpm i
  • Prepare using pnpm dev:prepare
  • Try playground using pnpm dev

Testing

Create a tgz.

rm -f ~/nuxt-svg-transformer-*.tgz && npm pack && mv nuxt-svg-transformer-*.tgz ~/

Add it to your Nuxt app.

{
  "devDependencies": {
    "nuxt-svg-transformer": "file:~/nuxt-svg-transformer-0.0.9.tgz"
  }
}

More typescript in your app?

Try nuxt-typed-link to get typed link into your app.

License

MIT - Made with 💚

0.2.0

2 years ago

0.2.3

2 years ago

0.1.4

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.1.5

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

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.51

3 years ago

0.0.5

3 years ago

0.0.44

3 years ago

0.0.43

3 years ago

0.0.42

3 years ago

0.0.41

3 years ago

0.0.4

3 years ago

0.0.31

3 years ago

0.0.3

3 years ago

0.0.25

3 years ago

0.0.24

3 years ago

0.0.23

3 years ago

0.0.22

3 years ago

0.0.21

3 years ago

0.0.2

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.1

3 years ago