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'
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
File details
Details for the file django-pipeline-browserify-0.1.0.tar.gz
.
File metadata
- Download URL: django-pipeline-browserify-0.1.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 083233d6eb82bd36a6d4636bb74f760099c9d02ffe22ff5b74f3df8b35f70970 |
|
MD5 | 1f5542d69a9e77c77b92d9dcd085c570 |
|
BLAKE2b-256 | 1a12a68fea3b5e5ca0a584f94961c9a76b6d919f899ebc08639718d3e9a5ab26 |