https-fontello-webpack-plugin

0.4.8 • Public • Published

Fontello Webpack Plugin

Download icon fonts to webpack build folder using Fontello.


Install

npm install https-fontello-webpack-plugin

Usage

/webpack.config.js

const FontelloPlugin = require("fontello-webpack-plugin")
 
module.exports = {
  entry: "index.js",
  /* ... */
  plugins: [
    new FontelloPlugin({
      config: require("./fontello.config.json")
      /* ...options */
    })
  ]
}

Options

new FontelloPlugin(options: Object)
Name Type Default Description
config Object - Configuration generated by Fontello.com.
className String "" Base class name. Use this if your configuration doesn't have a prefix.1
fonts Array [ "eot", "woff", "woff2", "ttf", "svg" ] Font types supported.
name String "icons" Module name.
output.css String "[name].css" Css output path
output.font String "font/[name].[ext]" Fonts output path
proxy String null Proxy URL if you sit behind an http or https proxy, e.g. http://1.2.3.4:8080

1 When config.css_prefix_text is empty a base class name is required to target all icons in css. If no prefix or class name is provided base styles are not emitted.

/https-fontello-webpack-plugin/

    Package Sidebar

    Install

    npm i https-fontello-webpack-plugin

    Weekly Downloads

    3

    Version

    0.4.8

    License

    ISC

    Unpacked Size

    16.5 kB

    Total Files

    15

    Last publish

    Collaborators

    • zasby