Rollup filter for webassets
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