Skip to content

IronLu233/remax-iconfont

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

remax-iconfont

在 Remax 项目中引入 Iconfont

使用

安装

yarn add remax-iconfont-component
 yarn add -D remax-iconfont-plugin

在 Iconfont 上找到你项目的 CSS image

然后将插件加入到 remax.config.js

const { RemaxIconfontPlugin } = require("remax-iconfont-plugin");
module.exports = {
  plugins: [
    RemaxIconfontPlugin({
      // 将上面的CSS加入到此处
      cssURL: "http://at.alicdn.com/t/font_8d5l8fzk5b87iudi.css",
    }),
  ],
};

最后在组件中这样使用

import Icon from 'remax-iconfont-component';
const Foo = () => <Icon type="icon-zhifubao">

About

快速将Iconfont引入至Remax中

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors