Skip to main content

Webpack integration for Flask.

Project description

https://img.shields.io/travis/inveniosoftware/flask-webpackext.svg https://img.shields.io/coveralls/inveniosoftware/flask-webpackext.svg https://img.shields.io/github/tag/inveniosoftware/flask-webpackext.svg https://img.shields.io/pypi/dm/flask-webpackext.svg https://img.shields.io/github/license/inveniosoftware/flask-webpackext.svg

Webpack integration for Flask.

Flask-WebpackExt makes it easy to interface with your existing Webpack project from Flask and does not try to manage Webpack for you. Flask-WebpackExt does this via:

  • Manifests: You tell Webpack to write a manifest.json using plugins such as webpack-manifest-plugin, webpack-yam-plugin or webpack-bundle-tracker. Flask-WebpackExt reads the manifest and makes your compiled assets available in your Jinja templates.
  • CLI for NPM: Flask-WebpackExt provides a Flask CLI so that e.g. flask webpack install will run npm install in your Webpack project. Similarly, flask webpack build will run npm run build.

Optionally you can use Flask-WebpackExt to also:

  • Inject configuration: Flask-WebpackExt will write a config.json into your Webpack project, which you can import in your Webpack configuration. You define what goes in the config e.g. Let Webpack know about output paths or dynamic entry points.
  • Collect bundles: If your Webpack project is spread over multiple Python packages, Flask-WebpackExt can help you dynamically assemble the files into a Webpack project. This is useful if you don’t know until runtime which packages are installed.

Further documentation is available on https://flask-webpackext.readthedocs.io/

Changes

Version 0.1.0 (released 2016-05-29)

  • Initial public release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
flask_webpackext-1.0.0-py2.py3-none-any.whl (15.7 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Nov 5, 2018
flask-webpackext-1.0.0.tar.gz (28.6 kB) Copy SHA256 hash SHA256 Source None Nov 5, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page