Skip to main content

Transparently use webpack with flask

Project description


flask version django-webpack-loader


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

pip install flask-webpack-loader


from flask_webpack_loader import WebpackLoader

webpack_loader = WebpackLoader(app)


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


    'BUNDLE_DIR_NAME': os.path.join('static', 'bundles'),
    'STATIC_URL': 'static',
    'STATS_FILE': '',
    'POLL_INTERVAL': 0.1,
    'TIMEOUT': None,
    'IGNORES': [re.compile(r'.+\.hot-update.js'), re.compile(r'.+\.map')]

Project details

Download files

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

Files for flask-webpack-loader, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size flask-webpack-loader-0.0.4.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page