django-pipeline compiler for browserify, requires browserify to be installed.
Project description
django-pipeline-browserify is a compiler for django-pipeline (requires 16.9+). 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 = { # ... 'javascript':{ 'browserify': { 'source_filenames' : ( 'js/entry-point.browserify.js', ), 'output_filename': 'js/entry-point.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
Close
Hashes for django-pipeline-browserify-0.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b00f77dde97cc4b6713628fb8cfec5114d60846932b9481fe26d0adb64613a7d |
|
MD5 | 4a7c835c4b502d20b6d516404f798bfc |
|
BLAKE2b-256 | 8b1da7df41d9e780cb00a98645f6718a48bc34939d3b8f3a0f7819621224d645 |