miniprogram-slim
v1.0.1
Published
analyze miniprogram dependencies, find unused files
Downloads
24
Maintainers
Readme
小程序瘦身工具
通过剔除无用文件、压缩图片、复用代码等方式减少小程序代码包体积。
功能
安装
npm install -g miniprogram-slim
使用
Usage: miniprogram-slim <command>
Options:
-v, --version output the version number
-h, --help output usage information
Commands:
cpd [options] <dir> Detect duplications in source code
sprite [options] <input...> Covert images into css sprites
imagemin [options] <input...> Minify images seamlessly
analyzer [options] Analyze dependencies of miniprogram, find out unused files
Examples:
$ miniprogram-slim analyzer -t
$ miniprogram-slim cpd src
$ miniprogram-slim imagemin images/**/*.png
$ miniprogram-slim sprite -f emoji images/**/*.png