- add site title to vue.config

- lnaguage tag for html page
- change portal api to new subdomain
This commit is contained in:
Arno Kaimbacher 2021-12-23 14:54:17 +01:00
parent ed7bd8c4d2
commit fb40b230d9
3 changed files with 18 additions and 9 deletions

2
.env
View File

@ -1,4 +1,4 @@
#NODE_ENV=production #NODE_ENV=production
NODE_ENV=development NODE_ENV=development
VUE_APP_PORTAL=//repository.geologie.ac.at/portal VUE_APP_PORTAL=//data.geologie.ac.at

View File

@ -1,10 +1,12 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang=""> <html lang="de">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" /> <meta name="viewport" content="width=device-width,initial-scale=1.0" />
<meta name="description" content="Data Publisher for Geoscience Austria">
<meta name="author" content="Arno Kaimbacher">
<link rel="icon" href="<%= BASE_URL %>favicon.ico" /> <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<title> <title>
<%= htmlWebpackPlugin.options.title %> <%= htmlWebpackPlugin.options.title %>

View File

@ -1,4 +1,4 @@
const webpack = require('webpack'); const webpack = require("webpack");
module.exports = { module.exports = {
publicPath: "/", publicPath: "/",
@ -14,11 +14,18 @@ module.exports = {
// return args // return args
// }) // })
// }, // },
configureWebpack: { pages: {
index: {
// entry for the page
entry: "src/main.ts",
title: "TETHYS - Research Data Repository",
},
},
configureWebpack: {
plugins: [ plugins: [
new webpack.DefinePlugin({ new webpack.DefinePlugin({
VUE_APP_PORTAL: JSON.stringify(process.env.VUE_APP_PORTAL), VUE_APP_PORTAL: JSON.stringify(process.env.VUE_APP_PORTAL),
}), }),
], ],
}, },
} };