webassets-rollup

Rollup filter for webassets


Keywords
rollup, webassets, django, assets
License
MIT
Install
pip install webassets-rollup==1.0.0

Documentation

Rollup filter for webassets Build Status

Filter for for compiling assets using Rollup and webassets. Requires Python 2.7 or Python 3.3 and newer.

Basic usage

from webassets.filter import register_filter
from webassets_rollup import Rollup

register_filter(Rollup)

Usage with Pyramid

This requires pyramid_webassets.

from webassets_rollup import Rollup
register_filter(Rollup)

Options

ROLLUP_BIN

The path to the Rollup binary. If not set, assumes rollup is in the system path.

ROLLUP_EXTRA_ARGS

A list of any command-line arguments to be included when rollup is called. For example:

ROLLUP_EXTRA_ARGS = ['--no-strict', '-f', 'cjs', '-c', '/my/rollup.config.js']

License

MIT