We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 902ba04 commit c65e7bdCopy full SHA for c65e7bd
config/webpack.config.prod.js
@@ -198,6 +198,7 @@ module.exports = {
198
new HtmlWebpackPlugin({
199
inject: true,
200
template: paths.appHtml,
201
+ production : true,
202
minify: {
203
removeComments: true,
204
collapseWhitespace: true,
public/index.html
@@ -17,6 +17,9 @@
17
</head>
18
<body>
19
<div id="root"></div>
20
+ <% if(htmlWebpackPlugin.options.production) { %>
21
+ <script src="cesium/cesiumDll.js"></script>
22
+ <% } %>
23
<!--
24
This HTML file is a template.
25
If you open it directly in the browser, you will see an empty page.
0 commit comments