0.1.1 • Published 5 years ago

alicon-webpack-plugin v0.1.1

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

What's iconfont-webpack-plugin ?

it will auto download iconfont resource and insert tag to you html template

How to use ?

Please install the latest html-webpack-plugin by npm install --save-dev html-webpack-plugin@next

// webpack.config.js
const IconfontWebpackPlugin = require('alicon-webpack-plugin')

module.exports = {
  // ...configs

  plugins: [
    // ...other plugins
    new IconfontWebpackPlugin({
      url: 'iconfont url',
      type: 'class(default)/symbol'
    })
  ]
}

It will insert a link(class type) or script(symbol type) to html head

0.1.1

5 years ago

0.1.0

5 years ago