Skip to main content

Babel filter for Webassets

Project description

# Webassets Babel

Babel filter for [Webassets](https://webassets.readthedocs.org/en/latest/)

## Description

Turn your ES6+ code into ES5 friendly code using https://babeljs.io/

## Installation

` npm install -g babel pip install webassets-babel `

## Using

First register filter:

` from webassets.filter import register_filter from webassets_babel import BabelFilter register_filter(BabelFilter) `

Then you can use it in your build process:

` Bundle('file.js', filters='babel') `

You can change babel binary using BABEL_BIN setting of your application.

History

0.3.0 (2015-10-09)

  • Bug fix

0.2.0 (2015-09-27)

  • Enable filter in debug mode

0.1.2 (2015-04-26)

  • First release on PyPI.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page