All Projects → unimonkiez → icon-maker-loader

unimonkiez / icon-maker-loader

Licence: other
Webpack loader to use icon font, easiest solution!

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to icon-maker-loader

React Loading Overlay
Loading overlays with fade, spinner, message support.
Stars: ✭ 218 (+1262.5%)
Mutual labels:  loader
Runpe In Memory
Run a Exe File (PE Module) in memory (like an Application Loader)
Stars: ✭ 249 (+1456.25%)
Mutual labels:  loader
sizeof-loader
Webpack loader that works like url-loader (or file-loader) but with extracted information such as image dimensions and file-size.
Stars: ✭ 20 (+25%)
Mutual labels:  loader
Vue I18n Loader
🌐 vue-i18n loader for custom blocks
Stars: ✭ 229 (+1331.25%)
Mutual labels:  loader
React Native Pulse Loader
tinder-like loader for your react native app
Stars: ✭ 250 (+1462.5%)
Mutual labels:  loader
Text Spinners
Pure text, CSS only, font independent, inline loading indicators
Stars: ✭ 2,728 (+16950%)
Mutual labels:  loader
Awesome Typescript Loader
Awesome TypeScript loader for webpack
Stars: ✭ 2,357 (+14631.25%)
Mutual labels:  loader
luacc
Lua Code Combine
Stars: ✭ 36 (+125%)
Mutual labels:  loader
Processloadingview
ProcessLoadingView is a step indicator loading animation built using CABasicAnimation
Stars: ✭ 251 (+1468.75%)
Mutual labels:  loader
phaser-manifest-loader
Phaser Manifest Loader
Stars: ✭ 28 (+75%)
Mutual labels:  loader
Is Loading
Simple library to show visual feedback when loading data or any action that would take time
Stars: ✭ 232 (+1350%)
Mutual labels:  loader
Rhplaceholder
Show pleasant loading view for your users 😍
Stars: ✭ 238 (+1387.5%)
Mutual labels:  loader
Preservely
Lightweight Android lib preserving objects instances during orientation changes
Stars: ✭ 22 (+37.5%)
Mutual labels:  loader
React Native Skeleton Content
A customizable skeleton-like loading placeholder for react native projects using expo.
Stars: ✭ 221 (+1281.25%)
Mutual labels:  loader
vkel
Simple Dynamic Vulkan Extension Loader
Stars: ✭ 39 (+143.75%)
Mutual labels:  loader
Style Resources Loader
CSS processor resources loader for webpack
Stars: ✭ 214 (+1237.5%)
Mutual labels:  loader
Spinners React
Lightweight SVG/CSS spinners for React
Stars: ✭ 254 (+1487.5%)
Mutual labels:  loader
loading
Laravel package to add loading indicator to pages while page is loading.
Stars: ✭ 38 (+137.5%)
Mutual labels:  loader
Fileloader
A library for managing file downloads on the Android platform
Stars: ✭ 27 (+68.75%)
Mutual labels:  loader
nativejsx-loader
Webpack loader for nativejsx. 💛
Stars: ✭ 15 (-6.25%)
Mutual labels:  loader

Build Status

Icon maker loader

Webpack loader to load svgs to font files and return the css classes to use that icon.

Installation

  • npm install icon-maker-loader
  • if you dont have a css and fonts (eot,svg,ttf,woff) loader, you can use css-loader and url-loader.

Usage

webpack configuration

const path = require('path');

module.exports = {
  ...
  module: {
    loaders: [
      {
        test: /\.svg$/,
        loader: 'icon-maker',
        include: path.join(__dirname, 'icons') // To avoid clash of svgs
      }, {
        test: /\.css$/, // Have to configure css loader for the generated css
        loader: 'style!css' // you can use `extract-text-webpack-plugin` instead of style-loader if it fits your needs
      }, {
        test: /\.(woff|eot|ttf|svg)$/, // Have to configure fonts loaders for the generated fonts
        loader: 'url',
        exclude: path.join(__dirname, 'icons') // To avoid clash of svgs
      }
    ]
  }
};

js example (react)

import React, { Component } from 'react';
import yinYan from './icons/yin-yan.svg'; // You get classes `default default-yin-yan`

export default MyComponent extends Component {
  render() {
    return (
      <div>
        Look at my icon!
        <span className={yinYan} />
      </div>
    );
  }
}

html example (requires html-loader)

<div>
  Look at my icon!
  <span class="${require('./icons/yin-yan.svg')}">
  </span>
</div>

parameters (query params to the loader)

  • fontFamily - (default icon-maker), can split your icons to multiple font families (for instance, better loading for different pages of your application).
  • files - (default eot,svg,ttf,woff), can decide which font files will be generated.
  • localCss - (default false) - will generate css with local scope to be used with css-loader (you can also convert all of your classes to local using css-loader?modules and then this option is not needed).

Example of parameters

icon-maker?fontFamily=login&files=eot,svg&localCss

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].