summaryrefslogtreecommitdiffstats
path: root/openecomp-ui
diff options
context:
space:
mode:
authorandre.schmid <andre.schmid@est.tech>2020-04-30 16:56:36 +0100
committerAndré Schmid <andre.schmid@est.tech>2020-05-01 10:17:56 +0000
commitb0982c12cc9fa0d8e642f4475ec293c7b6512c08 (patch)
tree01ef39ba80288c9ff4185585f3f39e24fc34eac7 /openecomp-ui
parent31c64b3443fb1a76d1cfc7afc0db1e51f1ffda79 (diff)
Fix sdc-FE /onboarding war listing
It creates a index.html page that will end up in the onboarding-FE .war file. When the /onboarding context is accessed, a blank page will show up instead of the contents of the .war. Change-Id: I0fb4be28e193e6e6bbd58c1af9a49d5750981b7e Issue-ID: SDC-3000 Signed-off-by: andre.schmid <andre.schmid@est.tech>
Diffstat (limited to 'openecomp-ui')
-rw-r--r--openecomp-ui/package.json3
-rw-r--r--openecomp-ui/webpack.config.js8
2 files changed, 8 insertions, 3 deletions
diff --git a/openecomp-ui/package.json b/openecomp-ui/package.json
index 0bd2243cc8..58074fa419 100644
--- a/openecomp-ui/package.json
+++ b/openecomp-ui/package.json
@@ -104,7 +104,8 @@
"webpack": "^4.5.0",
"webpack-cli": "^2.0.14",
"webpack-dev-server": "^3.1.3",
- "worker-loader": "^2.0.0"
+ "worker-loader": "^2.0.0",
+ "html-webpack-plugin": "^3.2.0"
},
"engines": {
"node": ">=8.0.0",
diff --git a/openecomp-ui/webpack.config.js b/openecomp-ui/webpack.config.js
index 28ba11bb99..f3b410e54e 100644
--- a/openecomp-ui/webpack.config.js
+++ b/openecomp-ui/webpack.config.js
@@ -3,7 +3,7 @@
const path = require('path');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const { DefinePlugin, HotModuleReplacementPlugin } = require('webpack');
-
+const HtmlWebpackPlugin = require('html-webpack-plugin');
const devConfig = require('./tools/getDevConfig');
const proxyServer = require('./proxy-server');
const fs = require('fs');
@@ -46,7 +46,7 @@ module.exports = (env, argv) => {
},
output: {
path: path.join(__dirname, 'dist'),
- publicPath: DEV ? publicPath : '/onboarding/',
+ publicPath: DEV ? publicPath : './',
filename: DEV ? '[name].js' : '[name]_' + language + '.js'
},
module: {
@@ -130,6 +130,10 @@ module.exports = (env, argv) => {
new DefinePlugin({
DEBUG: DEV === true,
DEV: DEV === true
+ }),
+ new HtmlWebpackPlugin({
+ filename: 'index.html',
+ template: __dirname + '/src/index.html'
})
]
};