From 370d4f34321f97b6f120dbdde40bdf71525aaed5 Mon Sep 17 00:00:00 2001 From: Qixiang Cheng Date: Thu, 20 Sep 2018 18:27:42 +0800 Subject: [PATCH] Webportal: fix version display in PAIShare pages --- src/webportal/config/webpack.common.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/webportal/config/webpack.common.js b/src/webportal/config/webpack.common.js index 04e73f0bb0..d072b9fb70 100644 --- a/src/webportal/config/webpack.common.js +++ b/src/webportal/config/webpack.common.js @@ -306,7 +306,8 @@ const config = (env, argv) => ({ chunks: ['layout', 'docs'] }), new HtmlWebpackPlugin({ - title: 'Platform for AI', + title: title, + version: version, filename: 'submit-v2.html', template: './src/app/layout/layout.component.ejs', minify: htmlMinifierOptions, @@ -314,7 +315,8 @@ const config = (env, argv) => ({ chunks: ['layout', 'jobSubmit'] }), new HtmlWebpackPlugin({ - title: 'Platform for AI', + title: title, + version: version, filename: 'template.html', template: './src/app/layout/layout.component.ejs', minify: htmlMinifierOptions, @@ -322,7 +324,8 @@ const config = (env, argv) => ({ chunks: ['layout', 'templateDetail'] }), new HtmlWebpackPlugin({ - title: 'Platform for AI', + title: title, + version: version, filename: 'marketplace.html', template: './src/app/layout/layout.component.ejs', minify: htmlMinifierOptions, @@ -330,7 +333,8 @@ const config = (env, argv) => ({ chunks: ['layout', 'templateView'] }), new HtmlWebpackPlugin({ - title: 'Platform for AI', + title: title, + version: version, filename: 'template-list.html', template: './src/app/layout/layout.component.ejs', minify: htmlMinifierOptions,