-
Couldn't load subscription status.
- Fork 340
Closed
Description
Hey @owais
I was hoping to use your lib with a decoupled app which ships with pre-built bundles. As far as I can tell, it only allows you to use a single manifest, which looks like it'd preclude any other apps from trying to use the loader.
Is there anyway to override the manifest path?
Something like the following would be cool
import os from webpack_loader.utils import read_bundle_from_manifest manifest_path = os.path.join(os.path.dirname(__file__), 'webpack-manifest.json') bundle = read_bundle_from_manifest(manifest_path) bundle.render_css() bundle.render_js()or even
{% load render_bundle from webpack_loader %} {% render_bundle 'main' 'css' path_to_manifest %} {% render_bundle 'main' 'js' path_to_manifest %} Metadata
Metadata
Assignees
Labels
No labels