Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shonenada/code-minimizer
A Python tool to minimize javascript and css code.
https://github.com/shonenada/code-minimizer
Last synced: 26 days ago
JSON representation
A Python tool to minimize javascript and css code.
- Host: GitHub
- URL: https://github.com/shonenada/code-minimizer
- Owner: shonenada
- Created: 2013-04-30T06:01:22.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-04-30T06:15:15.000Z (over 11 years ago)
- Last Synced: 2024-10-28T03:35:39.613Z (2 months ago)
- Language: C
- Size: 141 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Code Minimizer
## Introduce
This is a python tool to help you minimizer your javascript and css code before you deploy your website.
It uses [rjsmin](http://opensource.perlig.de/rjsmin/) to compress javascript codes, and uses [rcssmin](http://opensource.perlig.de/rcssmin) to compress your css codes.
## Usage
* Single file compression
`Python min-py -j script,s -c style.css`* Directory compression
`Python minimize.py ./static/ `__Important__ : If you are going to compress your codes using the second method, your folder structure looks like:
++ staitc
-- ++ scripts
-- ++ js_folders
-- js_files
-- ++ styles
-- ++ css_folders
-- css_files