Skip to content

Commit

Permalink
Option to remove the javascript-bundle from the page
Browse files Browse the repository at this point in the history
Fixes bootprint/bootprint-openapi#86

This can be achieved by overriding the partial `base/javascript-libs` with an empty
file.
  • Loading branch information
nknapp committed Feb 9, 2017
1 parent 14a0fd1 commit cd0f12b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions handlebars/partials/base/javascript-libs.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{{!
This partial is rendered below the `footer`-partial of the page. It includes the
javascript-bundle generated by `customize-engine-uglify`. If you don't want to
include the javascript-bundle, because you do not require the bootstrap-javascript,
you can override this partial with an empty one.
}}
<script src="bundle.js" type="application/javascript"></script>
2 changes: 1 addition & 1 deletion handlebars/templates/index.html.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
{{>base/body}}
</div>
{{>base/footer}}
<script src="bundle.js" type="application/javascript"></script>
{{>base/javascript-libs}}
</body>
</html>

0 comments on commit cd0f12b

Please sign in to comment.