0.1.5 • Published 5 months ago

pixui-sprite-maker v0.1.5

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

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 来使用图集资源