Skip to content

Commit

Permalink
Merge 937437c into ceace1d
Browse files Browse the repository at this point in the history
  • Loading branch information
iambibhas committed Nov 19, 2019
2 parents ceace1d + 937437c commit d0cdddf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions baseframe/__init__.py
Expand Up @@ -248,6 +248,14 @@ def init_app(
app.assets.register('css_all', css_all)
app.register_blueprint(self, static_subdomain=subdomain)

for module_name in app.config.get('PRIVATE_ASSETS', []):
try:
module = __import__(module_name)
module.blueprint.init_app_assets(app, assets)
app.register_blueprint(module.blueprint)
except ImportError:
continue

# Optional config for a client app to use a manifest file
# to load fingerprinted assets
# If used with webpack, the client app is expected to specify its own webpack.config.js
Expand Down

0 comments on commit d0cdddf

Please sign in to comment.