https://github.com/appleboy/minify-tool
minify all html, css, js and optimize image files for web project.
https://github.com/appleboy/minify-tool
Last synced: 9 months ago
JSON representation
minify all html, css, js and optimize image files for web project.
- Host: GitHub
- URL: https://github.com/appleboy/minify-tool
- Owner: appleboy
- Created: 2013-02-21T04:31:46.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2015-01-07T05:00:12.000Z (about 11 years ago)
- Last Synced: 2025-04-10T08:29:56.073Z (9 months ago)
- Language: Shell
- Homepage:
- Size: 391 KB
- Stars: 15
- Watchers: 5
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Web Minify Tool
Minify all html, css, js and optimize image files for web project.
## Feature
* JavaScript compressor: [UglifyJS](https://github.com/mishoo/UglifyJS2)
* CSS optimizer: [CSSO](https://www.npmjs.com/package/csso)
* HTML compressor/minifie: [HTML compressor](https://github.com/kangax/html-minifier)
* Optimize images: [image_optim](https://github.com/toy/image_optim)
## Installation
Install [NPM](https://npmjs.org/) and compressor tools via the following script command.
```bash
$ git clone https://github.com/appleboy/minify-tool.git build
$ cd build && chmod +x install.sh minify
```
Install Html, CSS and JavaScript minify tool.
```bash
$ ./install.sh
```
## Usage
Minify image files (include *.jpg, *.png, *.gif).
```bash
$ ./minify -t image image_folder_path
```
Minify single html, css or javascript file.
```bash
$ ./minify single_file_path
```
Minify web project on same folder.
```bash
$ ./minify your_project_folder_path
```
Minify web project to another folder.
```bash
$ ./minify your_project_folder_path -o output_folder_path
```
## UNIX Command
Copy minify to /usr/bin folder
```bash
$ cp ./minify /usr/bin/minify
```
## Author
Bo-Yi Wu, Twitter: [@appleboy](http://twitter.com/appleboy "Twitter"), Blog: http://blog.wu-boy.com