0.0.11 • Published 6 years ago
@thevuong/svg-sprites v0.0.11
@thevuong/svg-sprites
Create all material-design-icons svg icons into a single svg symbol file.
Setup
- Add
@thevuong/svg-spritesandmaterial-design-iconsdependency to your project
yarn add @thevuong/svg-sprites # or npm install @thevuong/svg-spritesyarn add material-design-icons # or npm install material-design-icons- Add
@thevuong/svg-spritesto themodulessection ofnuxt.config.js
{
modules: [
// Simple usage
'@thevuong/svg-sprites',
// With options
['@thevuong/svg-sprites', { /* module options */ }]
]
},
svgSprites: {
extend: [
{
sprite: 'material',
input: '~/node_modules/material-design-icons/sprites/svg-sprite',
regExp: /svg-sprite-(\w+)-symbol\.svg$/
}
]
},Development
- Clone this repository
- Install dependencies using
yarn installornpm install - Start development server using
npm run dev
License
Copyright (c) Vuong Phan 13298232+thevuong@users.noreply.github.com