nuxt-icon-font

0.0.9 • Public • Published

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

  1. Add nuxt-icon-font dependency to your project
yarn add nuxt-icon-font # or npm install nuxt-icon-font --save 
  1. Add nuxt-icon-font to the buildModule section of nuxt.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

  1. Clone this repository
  2. Install dependencies using yarn install or npm install
  3. Start development server using npm run dev

License

MIT License

Copyright (c) omid o.bakhshi.dev@gmail.com

Package Sidebar

Install

npm i nuxt-icon-font

Weekly Downloads

0

Version

0.0.9

License

MIT

Unpacked Size

6.84 kB

Total Files

5

Last publish

Collaborators

  • omidba