pixui-sprite-maker

0.1.5 • Public • Published

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

Readme

Keywords

none

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

Last publish

Collaborators

  • ryougi