Permalink
Browse files

Update Webpack prod config to use the Cesium DLL bundle

  • Loading branch information...
markerikson committed Mar 4, 2017
1 parent b55dbd5 commit 6db616f533c9c8a96bc09fbf859a679220b0d548
Showing with 7 additions and 1 deletion.
  1. +7 −1 config/webpack.config.prod.js
@@ -1,3 +1,4 @@
var path = require('path');
var autoprefixer = require('autoprefixer');
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
@@ -182,7 +183,12 @@ module.exports = {
];
},
plugins: [
// Makes some environment variables available in index.html.
new webpack.DllReferencePlugin({
context : paths.cesiumSourceFolder,
manifest: require(path.join(paths.app, "distdll/cesiumDLL-manifest.json")),
}),
// Makes some environment variables available in index.html.
// The public URL is available as %PUBLIC_URL% in index.html, e.g.:
// <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
// In production, it will be an empty string unless you specify "homepage"

0 comments on commit 6db616f

Please sign in to comment.