Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ac-sprite

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ac-sprite

## 使用npm install -g ac-sprite

  • 1.0.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

使用说明

使用npm install -g ac-sprite

在activity目录下面使用 ac-sprite sp 就能生成雪碧图以及对应的css文件,默认的位置是查找当前命令路径下的 ./cn_img/sprite 里面的所有图片文件进行雪碧图合并。会在当前目录路径里生成一个sprite.css 和在 ./cn_img/sprite的上级目录里面生成一个sprite.png。

你只需要@import 'sprite.css'就能使用了。当然也可以改路径,具体可以通过 ac-sprite查看相关参数使用。如果要添加图片就直接使用sp-{图片名}做为class引用。已经根据魔方做了rem的适配。

FAQs

Package last updated on 03 Aug 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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc