Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sdras/vue-sample-svg-icons

An opinionated example of how to use SVG icons in a Vue.js application
https://github.com/sdras/vue-sample-svg-icons

animated-svg svg svg-icons vue vue-icon-system vue-icons vue-svg-icons vuejs vuejs2

Last synced: 8 days ago
JSON representation

An opinionated example of how to use SVG icons in a Vue.js application

Awesome Lists containing this project

README

        

# Sample SVG Icon usage for Vue.js

A demo to show how I prefer to set up an SVG icon system in Vue.js. You can see a demo live here. You don't have to do it this way, it's an opinionated example. More details for _why_ it's set up in this manner in the [Vue Cookbook](https://vuejs.org/v2/cookbook/editable-svg-icons.html).

![Documentation site](https://s3-us-west-2.amazonaws.com/s.cdpn.io/28963/screendocs.jpg "Docs demo")

## Build Setup

```bash
# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report
```

For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).