Webpack Bundle API
flask_unchained.bundles.webpack
flask_unchained.bundles.webpack.config
Config
|
Default configuration options for the Webpack Bundle. |
ProdConfig
|
Default production configuration options for the Webpack Bundle. |
StagingConfig
|
Inherit production settings. |
flask_unchained.bundles.webpack.extensions
WebpackBundle
-
class
flask_unchained.bundles.webpack.
WebpackBundle
[source]
The Webpack Bundle.
-
name
: str = 'webpack_bundle'
The name of the Webpack Bundle.
Config
-
class
flask_unchained.bundles.webpack.config.
Config
[source]
Default configuration options for the Webpack Bundle.
-
WEBPACK_MANIFEST_PATH
= None
The full path to the manifest.json
file generated by Webpack Manifest Plugin.
-
class
flask_unchained.bundles.webpack.config.
ProdConfig
[source]
Default production configuration options for the Webpack Bundle.
-
WEBPACK_ASSETS_HOST
= ''
The host where Webpack assets are served from. Defaults to the same server as the
backend.
-
class
flask_unchained.bundles.webpack.config.
StagingConfig
[source]
Inherit production settings.
Extensions
-
class
flask_unchained.bundles.webpack.
Webpack
[source]
The Webpack extension:
from flask_unchained.bundles.webpack import webpack
-
webpack_asset_url
(asset)[source]
Returns the Webpack URL for the given asset (a key from manifest.json).
-
style_tag
(href_or_bundle_name)[source]
Include a stylesheet.
-
script_tag
(src_or_bundle_name)[source]
Include a script.