Skip to main content

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',
}

Project details


Download files

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

Source Distribution

gears-uglifyjs-0.1.1.tar.gz (95.7 kB view details)

Uploaded Source

File details

Details for the file gears-uglifyjs-0.1.1.tar.gz.

File metadata

File hashes

Hashes for gears-uglifyjs-0.1.1.tar.gz
Algorithm Hash digest
SHA256 27956878446c3ba9fe3d67157a3c0b8960f6aadce20fec659deeebc1e8ea6fb5
MD5 75bb59f4712b37d4338302c59a6bf4af
BLAKE2b-256 b5c4e93ca73df2a7415f8b0fbfe026f1683e998e3906caf3a866a8111d932f1d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page