Skip to content

Commit

Permalink
Do not load the lib directly in the html pages
Browse files Browse the repository at this point in the history
It is loaded indirectly by the js app code that requires it (via import)
  • Loading branch information
tbouffard committed Aug 20, 2020
1 parent 3e0d14e commit 897e646
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
4 changes: 1 addition & 3 deletions src/index-non-regression.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
<script src="./static/js/configureMxGraphGlobals.js"></script>
<!-- load mxGraph client library -->
<script src="./static/js/mxClient.min.js"></script>
<!-- load bpmn-visualization library -->
<script src="./index.es.js" type="module"></script>
<!-- load demo -->
<!-- load app -->
<script src="./static/js/non-regression.js" type="module"></script>
</body>
</html>
2 changes: 0 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
<script src="./static/js/configureMxGraphGlobals.js"></script>
<!-- load mxGraph client library -->
<script src="./static/js/mxClient.min.js"></script>
<!-- load bpmn-visualization library -->
<script src="./index.es.js" type="module"></script>
<!-- load demo -->
<script src="./static/js/demo.js" type="module"></script>
</body>
Expand Down
15 changes: 7 additions & 8 deletions src/lib-integration.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@
<link rel="shortcut icon" href="./static/img/favicon.ico">
</head>
<body>
<div id="bpmn-visualization-viewport"></div>
<div id="bpmn-visualization-viewport"></div>

<!-- load global settings -->
<script src="./static/js/configureMxGraphGlobals.js"></script>
<!-- load mxGraph client library -->
<script src="./static/js/mxClient.min.js"></script>
<!-- load bpmn-visualization library -->
<script src="./index.es.js" type="module"></script>
<script src="./static/js/lib-integration.js" type="module"></script>
<!-- load global settings -->
<script src="./static/js/configureMxGraphGlobals.js"></script>
<!-- load mxGraph client library -->
<script src="./static/js/mxClient.min.js"></script>
<!-- load app -->
<script src="./static/js/lib-integration.js" type="module"></script>
</body>
</html>

0 comments on commit 897e646

Please sign in to comment.