sdras / vue-sample-svg-icons

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

Home Page:https://sdras.github.io/vue-sample-svg-icons/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Documentation site

Build Setup

# 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 and docs for vue-loader.

About

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

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

License:MIT License


Languages

Language:Vue 56.7%Language:JavaScript 42.4%Language:HTML 0.8%