pixui-sprite-maker
使用-d <input dir> -o <output dir>
运行图集打包工具。
程序会在输入目录下寻找 normal 和 sprite 文件夹,normal 文件夹及其子文件夹下的资源会复制到 <output dir>/normal
,并生成引用声明。对于不想打到图集中的图片(如需要设置borderImage)可以使用这种方式。
sprite 文件夹及其子文件夹下的资源会被打包为不超过 1024*1024 的图集,图集资源会存放到<output>/sprite
下,通过在节点上添加<output>/sprite.less
中导出的 class 来使用图集资源
pixui-sprite-maker
0.1.5 • Public • PublishedDependents (0)
Package Sidebar
Install
npm i pixui-sprite-maker
Weekly Downloads
2
Version
0.1.5
License
ISC
Unpacked Size
8.52 MB
Total Files
89