add vue-html-webpack-plugin package

This commit is contained in:
ogerly 2022-02-16 12:42:35 +01:00
parent 234890146c
commit 073a42d968
4 changed files with 43 additions and 9 deletions

View File

@ -78,6 +78,7 @@
"node-sass": "^6.0.1",
"sass-loader": "^10",
"stats-webpack-plugin": "^0.7.0",
"vue-html-webpack-plugin": "^3.2.2",
"vue-template-compiler": "^2.6.11",
"webpack-bundle-analyzer": "^4.5.0"
},

View File

@ -17,19 +17,21 @@
<!DOCTYPE html>
<html>
<head>
<title lang="de">Gradido Dein Dankbarkeitskonto</title>
<title><%= htmlWebpackPlugin.options.title %></title>
<!-- <title lang="de">Gradido Dein Dankbarkeitskonto</title>
<title lang="en">Gradido - Your gratitude account</title>
<meta name="description" lang="de" content="Dankbarkeit ist die Währung der neuen Zeit. Immer mehr Menschen entfalten ihr Potenzial und gestalten eine gute Zukunft für alle.">
<meta name="description" lang="en" content="Gratitude is the currency of the new age. More and more people are unleashing their potential and shaping a good future for all.">
<meta name="keywords" lang="de" content="Grundeinkommen, Währung, Dankbarkeit, Schenk-Ökonomie, Natürliche Ökonomie des Lebens, Ökonomie, Ökologie, Potenzialentfaltung, Schenken und Danken, Kreislauf des Lebens, Geldsystem">
<meta name="keywords" lang="en" content="Basic Income, Currency, Gratitude, Gift Economy, Natural Economy of Life, Economy, Ecology, Potential Development, Giving and Thanking, Cycle of Life, Monetary System">
<meta name="author" content="Bernd Hückstädt - Gradido-Akademie">
<meta name="url" content="https://gdd.gradido.net">
<meta name="identifier-URL" content="http://www.gradido.net">
-->
<meta name="description" lang="de" content="<%= htmlWebpackPlugin.options.description_de %>">
<meta name="description" lang="en" content="<%= htmlWebpackPlugin.options.description_en %>">
<meta name="keywords" lang="de" content="<%= htmlWebpackPlugin.options.keywords_de %>">
<meta name="keywords" lang="en" content="<%= htmlWebpackPlugin.options.keywords_en %>">
<meta name="author" content="<%= htmlWebpackPlugin.options.author %>">
<meta name="url" content="<%= htmlWebpackPlugin.options.url %>">
<meta name="identifier-URL" content="<%= htmlWebpackPlugin.options.identifier_URL %>">
<meta charset="utf-8">
<meta name="robots" content="index,follow">
<link rel="icon" type="image/png" sizes="96x96" href="<%= webpackConfig.output.publicPath %>favicon.png">
<link rel="icon" type="image/png" sizes="96x96" href="./favicon.png">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">

View File

@ -2,6 +2,7 @@ const path = require('path')
const webpack = require('webpack')
const Dotenv = require('dotenv-webpack')
const StatsPlugin = require('stats-webpack-plugin')
const HtmlWebpackPlugin = require('vue-html-webpack-plugin')
// vue.config.js
module.exports = {
@ -38,6 +39,23 @@ module.exports = {
}),
// generate webpack stats to allow analysis of the bundlesize
new StatsPlugin('webpack.stats.json'),
new HtmlWebpackPlugin({
vue: true,
title: 'XGRADIDO',
template: 'public/index.html',
description_de:
'Dankbarkeit ist die Währung der neuen Zeit. Immer mehr Menschen entfalten ihr Potenzial und gestalten eine gute Zukunft für alle.',
description_en:
'Gratitude is the currency of the new age. More and more people are unleashing their potential and shaping a good future for all.',
keywords_de:
'Grundeinkommen, Währung, Dankbarkeit, Schenk-Ökonomie, Natürliche Ökonomie des Lebens, Ökonomie, Ökologie, Potenzialentfaltung, Schenken und Danken, Kreislauf des Lebens, Geldsystem',
keywords_en:
'Basic Income, Currency, Gratitude, Gift Economy, Natural Economy of Life, Economy, Ecology, Potential Development, Giving and Thanking, Cycle of Life, Monetary System',
author: 'Bernd Hückstädt - Gradido-Akademie',
url: 'http://localhost',
identifier_URL: 'http://localhost',
icon: './favicon.png',
}),
],
infrastructureLogging: {
level: 'warn', // 'none' | 'error' | 'warn' | 'info' | 'log' | 'verbose'

View File

@ -14158,6 +14158,19 @@ vue-hot-reload-api@^2.3.0:
resolved "https://registry.yarnpkg.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz#532955cc1eb208a3d990b3a9f9a70574657e08f2"
integrity sha512-BXq3jwIagosjgNVae6tkHzzIk6a8MHFtzAdwhnV5VlvPTFxDCvIttgSiHWjdGoTJvXtmRu5HacExfdarRcFhog==
vue-html-webpack-plugin@^3.2.2:
version "3.2.2"
resolved "https://registry.yarnpkg.com/vue-html-webpack-plugin/-/vue-html-webpack-plugin-3.2.2.tgz#df1499f05bcdf22c2e7040fa760fb0f5de66beea"
integrity sha512-C1qz9hxxrzvPSkpr59GHY8oh0U6TUuKYkhRg47pcYoq8D7JQKDGON8xsI6LYudVKGowcPj8GulfdHsp0Cc1gJA==
dependencies:
html-minifier "^3.2.3"
loader-utils "^0.2.16"
lodash "^4.17.3"
pretty-error "^2.0.2"
tapable "^1.0.0"
toposort "^1.0.0"
util.promisify "1.0.0"
vue-i18n-extract@1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/vue-i18n-extract/-/vue-i18n-extract-1.0.2.tgz#0a136e12d1634d6799e187aad81a7003d02f67a5"