0.0.11 • Published 4 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-sprites
andmaterial-design-icons
dependency to your project
yarn add @thevuong/svg-sprites # or npm install @thevuong/svg-sprites
yarn add material-design-icons # or npm install material-design-icons
- Add
@thevuong/svg-sprites
to themodules
section 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 install
ornpm install
- Start development server using
npm run dev
License
Copyright (c) Vuong Phan 13298232+thevuong@users.noreply.github.com