nuxt-icon-font
v0.0.9
Published
auto generate icon-font from svg
Downloads
5
Maintainers
Readme
nuxt-icon-font
Read a set of SVG icons and ouput a TTF/EOT/WOFF/WOFF2/SVG font, Generator of fonts from SVG icons.
Setup · Options · License . Development
Setup
- Add
nuxt-icon-font
dependency to your project
yarn add nuxt-icon-font # or npm install nuxt-icon-font --save
- Add
nuxt-icon-font
to thebuildModule
section ofnuxt.config.js
{
buildModule: [
// Simple usage
'nuxt-icon-font',
// With options
['nuxt-icon-font', { /* module options */ }]
]
}
Or
{
buildModule: [
// Simple usage
'nuxt-icon-font',
],
nuxtIconFont: {
// put options here
}
}
Options
dist
Type:
String
Default value:assets/fonts
The output directory.
src
Type:
String
Default value:svg
output path
fontName
Type:
String
Default value:iconfont
The font family name you want.
Development
- Clone this repository
- Install dependencies using
yarn install
ornpm install
- Start development server using
npm run dev
License
Copyright (c) omid [email protected]