alicon-webpack-plugin
v0.1.1
Published
auto download iconfont resource and insert into your html template
Downloads
1
Readme
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