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 1.0.1 (released 2018-12-14)

  • Pypi classifier and deployment configuration

  • License detection

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.

Source Distribution

flask-webpackext-1.0.1.tar.gz (29.4 kB view details)

Uploaded Source

Built Distribution

flask_webpackext-1.0.1-py2.py3-none-any.whl (14.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file flask-webpackext-1.0.1.tar.gz.

File metadata

  • Download URL: flask-webpackext-1.0.1.tar.gz
  • Upload date:
  • Size: 29.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.4

File hashes

Hashes for flask-webpackext-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a7624d67ec6ae829d6959e77e1d8f635657c27d58cc11a61e75541cac93e1fac
MD5 858c8457cd4a33ed848ec0f433329105
BLAKE2b-256 46e8ca2ba8fb27054bc11df6653a3cd79fb0ed4e7fd5945c4e1253ddf02e1df5

See more details on using hashes here.

File details

Details for the file flask_webpackext-1.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: flask_webpackext-1.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.4

File hashes

Hashes for flask_webpackext-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 687a3697f3f015b4fdc0a335df9b4c4b0d16cac9bbaac8948ee8be5a9f196889
MD5 1c3528231d9491185670608c010fba0f
BLAKE2b-256 aff818699861602a16e49327fcef9bc9e9e1aafa3c58124e394a542dcc59dfff

See more details on using hashes here.

Supported by

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