Skip to content

waic0083/wp-font-icon-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wp-font-icon-plugin

another font icon plugin for Webpack
通过webpack将引入的svg打包为字体文件

usage:

const WebpackSvgFontIconPlugin = require('wp-font-icon-plugin');
//... come config
module: {
    rules: [{
        test: /\.svg$/,
        use: WebpackSvgFontIconPlugin.loader()
    }]
},
plugins: [
    new WebpackSvgFontIconPlugin({
        fontFileName: "ficon",
        familyName: "ficon",
        classPrefix: "sf"
    }),
]
//... other config

About

another font icon plugin for webpack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published