Socket
Socket
Sign inDemoInstall

iconfontcn-loader

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iconfontcn-loader

iconfont-loader for iconfont.cn


Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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]"
    }]
},

Keywords

FAQs

Package last updated on 19 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc