X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Fabout%2Fwebpack.production.config.js;h=a2fa842ded32b5e82a7e4ee24e1a5d1e1eb90dcb;hp=4a2aa12d9710eb14d70bc6011fedde86769ae671;hb=refs%2Ftags%2Fv3.0.0rc2;hpb=f2dc2462571800e62cba969964de621dca09299c diff --git a/skyquake/plugins/about/webpack.production.config.js b/skyquake/plugins/about/webpack.production.config.js index 4a2aa12d9..a2fa842de 100644 --- a/skyquake/plugins/about/webpack.production.config.js +++ b/skyquake/plugins/about/webpack.production.config.js @@ -27,6 +27,7 @@ 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, @@ -67,8 +68,8 @@ var config = { }, plugins: [ new HtmlWebpackPlugin({ - filename: '../index.html', - templateContent: '
' + filename: '../' + htmlFilename, + template: frameworkPath + '/plugin-index.html' }) ] };