X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Fdebug%2Fwebpack.production.config.js;h=f23b8d22af0cc183fe7db7689791f7829576911f;hb=9a78ccc66dca3e1debfc1199205844000b79afed;hp=2ef01beea4edbcd6d77ae04af8b25f4c8357af19;hpb=efcca9816240e4cd87e524776885551ed534aa9d;p=osm%2FUI.git diff --git a/skyquake/plugins/debug/webpack.production.config.js b/skyquake/plugins/debug/webpack.production.config.js index 2ef01beea..f23b8d22a 100644 --- a/skyquake/plugins/debug/webpack.production.config.js +++ b/skyquake/plugins/debug/webpack.production.config.js @@ -26,6 +26,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', entry: mainPath, @@ -66,8 +67,8 @@ var config = { }, plugins: [ new HtmlWebpackPlugin({ - filename: '../index.html', - templateContent: '
' + filename: '../' + htmlFilename, + template: frameworkPath + '/plugin-index.html' }) ] };