X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Fcomposer%2Fwebpack.production.config.js;fp=skyquake%2Fplugins%2Fcomposer%2Fwebpack.production.config.js;h=ecfc6b636c90a5d8ef024ae64986cbf2c3bc19a0;hp=7839f1029a2af7efe570b79a48dfc689ec7a85a3;hb=03156e335275de1dafbc2a816e98006afdf249bf;hpb=f2dc2462571800e62cba969964de621dca09299c diff --git a/skyquake/plugins/composer/webpack.production.config.js b/skyquake/plugins/composer/webpack.production.config.js index 7839f1029..ecfc6b636 100644 --- a/skyquake/plugins/composer/webpack.production.config.js +++ b/skyquake/plugins/composer/webpack.production.config.js @@ -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: '
' + filename: '../' + htmlFilename, + template: frameworkPath + '/plugin-index.html' }) ] };