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.1.0 (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.1.1.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for webassets_babel-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cdd7b2f7facdde5e6e7070ca344a6dd6ef50aefc17a7cd4c0229e6add0dbc13 |
|
MD5 | 3065ac57efdc6be34e59d73de9fdb989 |
|
BLAKE2b-256 | b823fdc138e06c442048ddc19bfd0214f4804a9cb145c43c5e53111c8967a107 |