Permalink
Browse files

Conditionally include Cesium bundle in the HTML host page

  • Loading branch information...
markerikson committed Mar 4, 2017
1 parent 902ba04 commit c65e7bd3aad11d7118f335d4896a613a3b9f61bd
Showing with 4 additions and 0 deletions.
  1. +1 −0 config/webpack.config.prod.js
  2. +3 −0 public/index.html
@@ -198,6 +198,7 @@ module.exports = {
new HtmlWebpackPlugin({
inject: true,
template: paths.appHtml,
production : true,
minify: {
removeComments: true,
collapseWhitespace: true,
View
@@ -17,6 +17,9 @@
</head>
<body>
<div id="root"></div>
<% if(htmlWebpackPlugin.options.production) { %>
<script src="cesium/cesiumDll.js"></script>
<% } %>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.

0 comments on commit c65e7bd

Please sign in to comment.