Skip to main content

flask-webpack-loader

flask version django-webpack-loader

Install

npm install --save-dev webpack-bundle-tracker

pip install flask-webpack-loader

Usage

app.py

from flask_webpack_loader import WebpackLoader

webpack_loader = WebpackLoader(app)

template.html

    {{ render_bundle('main') | safe }}
    
    # webpack 4+
    {{ render_bundle('runtime~main') | safe }}
    {{ render_bundle('undefined') | safe }}

Configuration

WEBPACK_LOADER = {
    'BUNDLE_DIR_NAME': os.path.join('static', 'bundles'),
    'STATIC_URL': 'static',
    'STATS_FILE': 'webpack-stats.prod.json',
    'POLL_INTERVAL': 0.1,
    'TIMEOUT': None,
    'IGNORES': [re.compile(r'.+\.hot-update.js'), re.compile(r'.+\.map')]
}

Metadata

Release files for flask-webpack-loader 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flask-webpack-loader 0.0.4
File Size Uploaded Provenance Actions
flask-webpack-loader-0.0.4.tar.gz 4.5 kB Without provenance Details for flask-webpack-loader-0.0.4.tar.gz

Release files / flask-webpack-loader-0.0.4.tar.gz

Download URL flask-webpack-loader-0.0.4.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
acce747d864ac35d03f8e6df50ee266b77e18c1cc0617c7a5ad7e96f88f92056
BLAKE2b-256 checksum
How to use checksums
521370ac01948202432b32361c259ff5f785fe8a0916e40b77d30a4d46e23431
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

Security for flask-webpack-loader 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.4 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page