diff --git a/baseframe/__init__.py b/baseframe/__init__.py index 2221d7eb..c2182667 100644 --- a/baseframe/__init__.py +++ b/baseframe/__init__.py @@ -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