W3Cschool
恭喜您成為首批注冊(cè)用戶(hù)
獲得88經(jīng)驗(yàn)值獎(jiǎng)勵(lì)
通過(guò)剔除無(wú)用文件、壓縮圖片、復(fù)用代碼等方式減少小程序代碼包體積。開(kāi)源項(xiàng)目地址:https://github.com/wechat-miniprogram/miniprogram-slim。
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
Copyright©2021 w3cschool編程獅|閩ICP備15016281號(hào)-3|閩公網(wǎng)安備35020302033924號(hào)
違法和不良信息舉報(bào)電話:173-0602-2364|舉報(bào)郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號(hào)
聯(lián)系方式:
更多建議: