Skip to main content

django-pipeline compiler for browserify, requires browserify to be installed.

Project description

django-pipeline-browserify is a compiler for django-pipeline. Making it really easy to use browserify with Django via pipeline.

To install it:

sudo npm install -g browserify
pip install django-pipeline-browserify

And add it as a compiler to pipeline in your django settings.py:

PIPELINE_COMPILERS = (
    'pipeline_browserify.compiler.BrowserifyCompiler',
)

To add source maps during development (or any other browserify args):

if DEBUG:
    PIPELINE_BROWSERIFY_ARGUMENTS = '-d'

To add variable assignments before the browserify command:

PIPELINE_BROWSERIFY_VARS = 'NODE_ENV=production'

Important: give your entry-point file a .browserify.js extension:

PIPELINE_JS = {
    'browserify': {
        'source_filenames' : (
            'js/entry-point.browserify.js',
        ),
        'output_filename': 'js/browserified.js',
    },
}

To suggest a feature or report a bug: https://github.com/j0hnsmith/django-pipeline-browserify/issues

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

django-pipeline-browserify-0.2.0.tar.gz (2.0 kB view details)

Uploaded Source

File details

Details for the file django-pipeline-browserify-0.2.0.tar.gz.

File metadata

File hashes

Hashes for django-pipeline-browserify-0.2.0.tar.gz
Algorithm Hash digest
SHA256 af35789f08bb24a46a3b9a7289d6d6687b0c37df7336ff2edc17c7a6c38f2e64
MD5 416db825b9e775738f82f039144d9785
BLAKE2b-256 d4905e6759b5888f2bfa6bb6c8a4c7e55811960a9eb71c8bef1241cef375df1c

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