![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
auto-sprites
Advanced tools
npm install auto-sprites -g
sprites <root> <source> <target> <sprites> [base64] [level]
root
文件存放的根目录,比如htdocs
source
指定编译的文件夹,比如/css/6v
target
指定编译后文件存放的位置 比如/css/6v
sprites
指定图片文件存放的位置 比如/simg
base64
是否启用base64编码
level
以文件或者文件夹的维度合并图片,默认值为file
垂直合并
水平合并
对角线合并
紧凑合并
var sprites = new AutoSprites({
data: cssData, /*合并的CSS的数据*/
root: '/', /*image的root*/
path: path.join(process.cwd(), config.target, 'img'), /*image存放路径*/
fileName: fileName, /*文件名称,针对该名称进行base64编码生成图片的名称*/
base64: false /*是否启用base64编码*/
});
由于无法解析组合类,所以建议图片和样式书写在一个样式里面,另外无法找到的图片将被忽略。
2014-04-22 : 修复注释解析错误的问题,修复sprites命令base64参数解析的问题
2014-01-21 : 修复windows下路径替换错误的问题
2013-11-19 :修复注释解析错误的问题
FAQs
The npm package auto-sprites receives a total of 8 weekly downloads. As such, auto-sprites popularity was classified as not popular.
We found that auto-sprites demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.