Skip to content
On-demand minification using YUICompressor
Python
Find file
Pull request Compare This branch is 3 commits behind potatolondon:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
.mash_example
README.md
mashed_potato.py
tests.py
yuicompressor-2.4.5.jar
yuicompressor-README

README.md

Mashed Potato

A script that monitors your directories and minifies any JS or CSS it finds. Requires Python 2.5+, no Python 3 support yet.

GPL v2 license.

Usage

Create a .mash file in the root of your project:

# lines starting # are ignored
static/js
static/css

# You can also use regular expression to mark your directories
static/dev/(js|css)

# Note you have to explicitly specify subdirectories
static/js/[^/]*/libs
static/js/[^/]*/libs/morelibs

Then just fire up MashedPotato, and ... that's it! MashedPotato will monitor those directories, and automatically reminify any modified files.

Something went wrong with that request. Please try again.