mirror of
https://gitlab.com/CodeSolutionsProject/MiniThunder.git
synced 2026-02-18 11:01:44 +01:00
Added bash version, updated readme, and deleted doc folder because it has nothing useful yet
This commit is contained in:
45
README.md
Normal file → Executable file
45
README.md
Normal file → Executable file
@@ -1,7 +1,40 @@
|
||||
MiniThunder
|
||||
=
|
||||
Minimize project to production
|
||||
-
|
||||
### Require
|
||||
# MiniThunder
|
||||
|
||||
## Minimize project to production, saving space (Not reversible)
|
||||
|
||||
### Python version
|
||||
It supports html/css/js files
|
||||
#### Requires
|
||||
* [jsmin](https://github.com/tikitu/jsmin/) - MIT
|
||||
* [rcssmin](http://opensource.perlig.de/rcssmin) - APACHE 2.0
|
||||
* [rcssmin](http://opensource.perlig.de/rcssmin) - APACHE 2.0
|
||||
|
||||
#### Use
|
||||
```
|
||||
python minithunder.py Folder/proyect Folder/minified
|
||||
```
|
||||
---
|
||||
### Bash version
|
||||
It supports html/xml,js,css,png and jpg files
|
||||
#### Requires
|
||||
* [html-minifier](https://www.npmjs.com/package/html-minifier)
|
||||
* [clean-css-cli](https://www.npmjs.com/package/clean-css)
|
||||
* [uglify-js](https://www.npmjs.com/package/uglify-js)
|
||||
* [optipng](http://optipng.sourceforge.net/) - ZLIB LICENSE (OPEN SOURCE)
|
||||
* [jpegoptim](http://freecode.com/projects/jpegoptim) - GPL
|
||||
|
||||
#### Use
|
||||
```
|
||||
bash minithunder.sh Folder/proyect
|
||||
```
|
||||
|
||||
#### Install dependencies in Debian and derivates (All as root)
|
||||
|
||||
```
|
||||
# apt install optipng jpegoptim uglifyjs cleancss npm
|
||||
# npm install html-minifier -g
|
||||
```
|
||||
|
||||
#### Install dependencies in Archlinux (All as root)
|
||||
```
|
||||
# pacman -S optipng jpegoptim npm
|
||||
# npm install html-minifier clean-css-cli uglify-js -g
|
||||
Reference in New Issue
Block a user