Filter for for compiling assets using Rollup and webassets. Requires Python 2.7 or Python 3.3 and newer.
from webassets.filter import register_filter
from webassets_rollup import Rollup
register_filter(Rollup)
This requires pyramid_webassets.
from webassets_rollup import Rollup
register_filter(Rollup)
The path to the Rollup binary. If not set, assumes rollup
is in the system path.
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']
MIT