edp-build-fontmin

1.0.3 • Public • Published

edp-build-fontmin

NPM version Downloads Dependencies

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

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i edp-build-fontmin

    Weekly Downloads

    1

    Version

    1.0.3

    License

    ISC

    Last publish

    Collaborators

    • okaychen
    • zttonly
    • gkiwi001
    • ovilia
    • 100pah
    • ecomfe-core
    • ecomfe-admin
    • otakustay
    • leeight
    • justineo
    • gdjinbo
    • luyuan
    • errorrik
    • ksky521
    • lang
    • jinzhan
    • junmer