Skip to content

kmeht/django-pipeline-browserify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Pipeline Browserify

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'

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published