🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

smart-font

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smart-font

icon字体库

latest
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

smart icon

smart icon 是为了线上所有项目提供的统一字体库 v1.0.0 仅仅提供统一图标导出字体库 v2.0.0 为各个项目提供单一路径的字体库生成器

本地部署

1.在src/config.js中添加新的字体配置
fontNames: [
    {
        fontName: 'smartstudy',
        url: '//www.smartstudy.com'
    },{
        fontName: 'wap',
        url: '//m.smartstudy.com'
    },
    // 添加新的字体库配置
    '0': 0
]
2.在src/icons中创建和配置项一样的fontName文件夹
在该文件件下添加所有的svg图片
3.本地打包生成字体图标库
npm install 
cp src/config.example.js src/config.js
gulp
node server.js
4.查看项目
http://localhost:config.port

线上部署

www/ 上传cdn 到 http://media8.smartstudy.com/smartfont

项目使用

http://media8.smartstudy.com/common/smartfont/<%= fontname %>/style.css
http://media8.smartstudy.com/common/smartfont/<%= fontname %>/style_all.css

Keywords

zhike

FAQs

Package last updated on 11 Aug 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