🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

spritesmith-css

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spritesmith-css

Generates the Sprites and the corresponding CSS

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
5
-28.57%
Maintainers
1
Weekly downloads
 
Created
Source

node-sprite-css

基于小图生成对应的精灵图和css样式。对于高清屏会生成对应的样式(这需要2x的小图集)

安装

    npm install spritesmith-css

API

  • src 需要一个数组,这个数组是包含你要合成的小图路径。
  • src2 2x的图片 可以没有此字段
  • output 输出的路径 默认值为:当前目录
  • name 输出的名称 默认值为:sprites

License

MIT

Keywords

sprites

FAQs

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