How to merge, minify and compile the code of your web assets in Flask
webassets is an asset management library for Python. Flask-Assets is an integration of webassets in your Flask application.
Flask-Assets helps you to integrate webassets into your Flask application.
2. Create an environment:
3. Defining assets:
you need to define your assets, in the form of so called bundles, and register them with the environment. The easist way to do it is directly in code: