X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Fhelloworld%2Fwebpack.production.config.js;h=82ac524aaabb497bc90ebaccfc9f9b61c43126eb;hp=7db6acc658885c471cba616acc7f1ff1edb7b064;hb=refs%2Ftags%2Fv3.0.0rc2;hpb=f2dc2462571800e62cba969964de621dca09299c diff --git a/skyquake/plugins/helloworld/webpack.production.config.js b/skyquake/plugins/helloworld/webpack.production.config.js index 7db6acc65..82ac524aa 100644 --- a/skyquake/plugins/helloworld/webpack.production.config.js +++ b/skyquake/plugins/helloworld/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, @@ -65,7 +66,7 @@ var config = { }, plugins: [ new HtmlWebpackPlugin({ - filename: '../index.html', + filename: '../' + htmlFilename, templateContent: '
' }) ]