update from RIFT as of 696b75d2fe9fb046261b08c616f1bcf6c0b54a9b third try
[osm/UI.git] / skyquake / plugins / composer / webpack.production.config.js
index 7839f10..ecfc6b6 100644 (file)
@@ -31,6 +31,7 @@ var HtmlWebpackPlugin = require('html-webpack-plugin');
 var CompressionPlugin = require("compression-webpack-plugin");
 // Added to overcome node-sass bug https://github.com/iam4x/isomorphic-flux-boilerplate/issues/62
 process.env.UV_THREADPOOL_SIZE=64;
+var htmlFilename = (process.argv.indexOf('--production-debug') !== -1) ? 'debug.html' : 'index.html'
 var config = {
        devtool: 'source-map',
        output: {
@@ -93,8 +94,8 @@ var config = {
        },
     plugins: [
         new HtmlWebpackPlugin({
-            filename: '../index.html'
-            templateContent: '<div id="app"></div>'
+            filename: '../' + htmlFilename
+            template: frameworkPath + '/plugin-index.html'
         })
     ]
 };