iconfontcn-loader
iconfont-loader for iconfont.cn
Last updated 4 years ago by vfasky .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install iconfontcn-loader 
SYNC missed versions from official npm registry.

iconfontcn-loader

iconfont-loader for iconfont.cn

解释 css 中的 @import url("//at.alicdn.com/t/font_1456128288_5614772.css");iconfont.cn 替换相对的 css 及下载字体到本地

install

npm install iconfontcn-loader --save-dev

demo

//webpack.config.js
module: {
    loaders: [{
        test: /\.scss$/,
        loader: ExtractTextPlugin.extract('style-loader', 'css?sourceMap!autoprefixer!iconfontcn!sass?sourceMap')
    }, {
        test: /\.(jpe?g|png|gif|svg)$/i,
        loader: 'url-loader?limit=10000&name=img/[hash:8].[name].[ext]'
    }, {
        test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
        loader: "url-loader?limit=10000&name=font/[hash:8].[name].[ext]&mimetype=application/font-woff"
    }, {
        test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
        loader: "url-loader?limit=10000&name=font/[hash:8].[name].[ext]"
    }]
},

Current Tags

  • 1.0.5                                ...           latest (4 years ago)

6 Versions

  • 1.0.5                                ...           4 years ago
  • 1.0.4                                ...           4 years ago
  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |