Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fouber/spt
简单易用的前端压缩工具
https://github.com/fouber/spt
Last synced: 2 days ago
JSON representation
简单易用的前端压缩工具
- Host: GitHub
- URL: https://github.com/fouber/spt
- Owner: fouber
- Created: 2014-03-20T05:32:33.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-11T07:36:11.000Z (over 10 years ago)
- Last Synced: 2024-08-04T00:13:37.606Z (3 months ago)
- Language: JavaScript
- Size: 172 KB
- Stars: 50
- Watchers: 5
- Forks: 14
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#简单易用的前端压缩工具(simple tool)
## 安装
```shell
npm install -g spt
```## 用法
> 对一个目录进行压缩,把结果发布到另一个目录里
```shell
spt release -r 目录A -od 目录B
```> 对一个目录进行压缩,并监听文件变化,把结果实时发布到另一个目录里
```shell
spt release -r 目录A -wod 目录B
```## 功能
1. js、css、png图片压缩
1. 图片压缩不用安装其他外部依赖
1. 文件变化监听
1. 无需配置