Socket
Socket
Sign inDemoInstall

@beisen-platform/react-icons

Package Overview
Dependencies
2
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@beisen-platform/react-icons


Version published
Maintainers
1
Install size
1.16 MB
Created

Readme

Source

相比于之前的图标图改动的点:

将图标库从前端版本中拆分出来,不打包在项目的main.css中,由后端输出单独css文件到承载页中

目录结构

删掉了原有多余文件,且将图标源文件dist目录改为static

前端发版方式

添加图标后,执行npm run build-prod,生成压缩文件

修改图标库配置文件

http://gitlab.beisencorp.com/ux-platform-ui/ux-platform-static-config/tree/develop/ux-na-de-style

在该地址的develop分支修改样式文件对应的版本号(ci生成的版本号http://jci.beisencorp.com/job/ux-na-de-style-js/),一定是develop分支

同步到测试环境

需要有ci下该项目http://jci.beisencorp.com/job/ux-na-de-style-js/ 的权限,点击构建即可将开发环境修改的版本同步到测试环境

目前pc仍然是发包后应用该图标,后续会修改该方式 相比

移动端则需要修改配置文件,且由于目前图标库的icon字体是随机生成的,因此输出到承载页上旧版本可能会图标显示错误,

目前处理方式为后端作兼容,移动端版本在1.32及以上才将图标库拆出来,之前的版本还是打在前端版本中

FAQs

Last updated on 15 Dec 2018

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc