fl

fontmin-loader

a Webpack loader base on Fontmin

Showing:

Popularity

Downloads/wk

7

GitHub Stars

10

Maintenance

Last Commit

4yrs ago

Contributors

1

Package

Dependencies

3

Size (min+gzip)

155.6KB

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

FontMin-loader

  • 这是一个基于fontmin的webpack 加载器,用于取字体子集
  • a Webpack loader of FontMin
  • @monkindey Thanks for your great idea;

##Getting start npm install fontmin-loader ##Useage

Documentation: Using loaders

Example 

{
        test:   /\.(ttf|eot|svg|woff(2)?)(\?[a-z0-9]+)?$/,
        loader: 'FontMin-loader',
        query:  {
            limit:10240,                // 10KB
            ext:'woff',             // 输出字体格式
            name:'fonts/[name]',            // 输出名称
            text:'helloworld'           // 字体集合 【String】
        }
}
 
{
        test:   /\.(ttf|eot|svg|woff(2)?)(\?[a-z0-9]+)?$/,
        loader: "FontMin-loader?limit=10240&name=fonts/[name].[ext]&text=helloworld",
}

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100