Skip to content
This repository has been archived by the owner on Nov 27, 2022. It is now read-only.
/ nuxt-icon-font Public archive

automatically generate icon font from svg for nuxt

License

Notifications You must be signed in to change notification settings

omidbakhshi/nuxt-icon-font

Repository files navigation

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

About

automatically generate icon font from svg for nuxt

Resources

License

Stars

Watchers

Forks

Packages

No packages published