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.2.0 (2015-09-27)
Enable filter in debug mode
0.1.2 (2015-04-26)
First release on PyPI.
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
webassets-babel-0.2.0.tar.gz
(5.3 kB
view hashes)
Built Distribution
Close
Hashes for webassets_babel-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a1768a9193bc3baacfbb54fba3ad729d2e5ca82394d86d517acd055b9f53deb |
|
MD5 | c33c0f143c38eba94393ad36c602d8db |
|
BLAKE2b-256 | 2f13d8a43b520c5c9014eeeb3e0841609e0d52bc318745aee6a23d4a72ee2412 |