Add support for CommonsChunkPlugin for Webpack.
This lets us consolidate chunks of JavaScript that are common to multiple bundles, so that they can live in their own shared file. This will be more relevant when we have UI components -- there's actually very little shared code right now.
This commit is contained in:
@@ -96,6 +96,7 @@ source, template_path = Loader(engine).load_template_source(path)
|
||||
try:
|
||||
return Template("""
|
||||
{% load render_bundle from webpack_loader %}
|
||||
{% render_bundle "commons" %}
|
||||
{% render_bundle entry %}
|
||||
<script type="text/javascript">
|
||||
{% autoescape off %}{{ body }}{% endautoescape %}
|
||||
|
||||
Reference in New Issue
Block a user