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
- 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
}
}
Type:
String
Default value:assets/fonts
The output directory.
Type:
String
Default value:svg
output path
Type:
String
Default value:iconfont
The font family name you want.
- Clone this repository
- Install dependencies using
yarn install
ornpm install
- Start development server using
npm run dev
Copyright (c) omid o.bakhshi.dev@gmail.com