1.0.3 • Published 6 years ago

@bitmain/vue-cli-plugin-fontmin v1.0.3

Weekly downloads
79
License
ISC
Repository
-
Last release
6 years ago

A vue-cli plugin to minify font and generator css by fontmin from a single .ttf font file

Install

js add @bitmain/fontmin

Usage

options

--input the directory where the raw .ttf files is in(default: src/assets/_fonts)
--output the directory where the minified files is to

by vue-cli-service

  npx vue-cli-service fontmin

input directory demo

There must be a couple of files with the same name in the input directory. i.e. {input}/demo.ttf {input}/demo.js

  //demo.js
  module.exports = {
    text: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789视频大数据综合应用系统平台相似度'
  }