Skip to main content
Help us improve Python packaging – donate today!

UglifyJS compressor for Gears

Project Description

UglifyJS compressor for Gears. This package already includes the UglifyJS source code for you, so you don’t need to worry about installing it yourself.

Bundled UglifyJS version: 1.3.3

Installation

Install gears-uglifyjs with pip:

$ pip install gears-uglifyjs

Requirements

gears-uglifyjs requires node.js to be installed in your system.

Usage

Add gears_uglifyjs.UglifyJSCompressor to environment’s compressors registry:

from gears_uglifyjs import UglifyJSCompressor
environment.compressors.register('application/javascript', UglifyJSCompressor.as_handler())

If you use Gears in your Django project, add this code to its settings:

GEARS_COMPRESSORS = {
    'application/javascript': 'gears_uglifyjs.UglifyJSCompressor',
}

Release history Release notifications

This version
History Node

0.1.1

History Node

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
gears-uglifyjs-0.1.1.tar.gz (95.7 kB) Copy SHA256 hash SHA256 Source None Oct 16, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page