将fontello_rails_converter生成的fontello.css和fonts打包成一个单独的css文件,font文件用其base64编码代替
-
创建rails应用
$ rails new rails_app_name
-
fontello_rails_converter初始化
- 进入rails应用目录
- 按照fontello_rails_converter#initial-usage方法初始化
-
使用fontello-with-base64
$ git clone https://github.com/zskymn/fontello-with-base64.git $ cd fontello-with-base64 $ npm install $ gulp buildgulp build之后fontello-with-base64目录下会生成最终的css文件fontello.css