diff --git a/package.json b/package.json index 60b1380..1828048 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { "name": "com.siemens.bt.jazz.rtc.workitemeditor.presentation.statushistory", - "version": "2.2.3", + "version": "2.2.4", "description": "a non-Attribute-based Work Item Editor Extension for Rational Team Concert that shows all Status changes since the creation of the work item in form of a timeline.", "scripts": { - "build": "webpack --config ./webpack.config.js" + "build": "webpack --config ./webpack.config.js --mode production" }, "repository": { "type": "git", @@ -22,6 +22,9 @@ "homepage": "http://jazz-community.org", "dependencies": { "jazz-update-site-webpack-plugin": "^0.4.1", - "webpack": "^3.2.0" + "webpack": "^4.6.0" + }, + "devDependencies": { + "webpack-cli": "^2.0.15" } } diff --git a/webpack.config.js b/webpack.config.js index c6030b2..df6888f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -3,8 +3,8 @@ const JazzUpdateSitePlugin = require('jazz-update-site-webpack-plugin'); const packageJson = require('./package.json'); module.exports = (env) => { - const version = (env && env.buildUUID) || packageJson.version; - version && console.info(`Build UUID is passed along: '${version}'`); + env && env.buildUUID && console.info(`Build UUID is passed along: '${env.buildUUID}'`); + const version = env && env.buildUUID || packageJson.version; const config = { entry: {