sht-cleancss [--debug]
npm run watch
npm run test
查看结果
-
npm run watch
开启编译模式 -
npm link
进行 link -
cd miniprogram
进入到小程序开发目录 -
npm link sht-cleancss
通过 link 方式安装 sht-cleancssnpm run sht-cleancss #执行默认命令 npx sht-cleancss "src/pagesPartner/mine/saleEstablish.wpy" 检测单文件
npm run cleancss
npx run cleancss "src/**/*.wpy"
npx sht-cleancss "src/pagesPartner/mine/saleEstablish.wpy"
npx sht-cleancss "src/pagesPartner/mine/saleEstablish.wpy" --debug
## 注意
src/pages/group/seckillInfo.wpy 文件中有两处`<style lang="stylus">`需要手动删除