# edp-build-fontmin **Repository Path**: cloud-computing-and-big-data/edp-build-fontmin ## Basic Information - **Project Name**: edp-build-fontmin - **Description**: No description available - **Primary Language**: JavaScript - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-07-14 - **Last Updated**: 2021-08-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # edp-build-fontmin [![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Dependencies][dep-image]][dep-url] [downloads-image]: http://img.shields.io/npm/dm/edp-build-fontmin.svg [npm-url]: https://npmjs.org/package/edp-build-fontmin [npm-image]: http://img.shields.io/npm/v/edp-build-fontmin.svg [dep-url]: https://david-dm.org/ecomfe/edp-build-fontmin [dep-image]: http://img.shields.io/david/ecomfe/edp-build-fontmin.svg > edp-build with fontmin ## Usage edp-build-config.js: ``` var FontProcessor = require('edp-build-fontmin'); exports.getProcessors = function () { var fontProcessor = new FontProcessor({ files: [ '*.ttf' ], // 字体文件 entryFiles: [ '*.html' ], // 引用字体的网页,用来扫描所需字型 text: '他夏了夏天', // 人肉配置所需字型 chineseOnly: true, // 只取中文字型,忽略 数字、英文、标点 }); return { 'default': [fontProcessor] }; }); ``` ## Related - [edp-build-fontmin-demo](https://github.com/junmer/edp-build-fontmin-demo)