From b08a59ddbe565808bfafe7bfcdfdc5634013e907 Mon Sep 17 00:00:00 2001 From: Franck Date: Tue, 14 Jan 2020 15:50:39 +0100 Subject: [PATCH] feat(): Add generator meta tag to ssr index.html template --- packages/@vuepress/core/lib/client/index.ssr.html | 1 + packages/@vuepress/core/lib/node/build/index.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/@vuepress/core/lib/client/index.ssr.html b/packages/@vuepress/core/lib/client/index.ssr.html index 32d310a9b3..1c5e66bc8c 100644 --- a/packages/@vuepress/core/lib/client/index.ssr.html +++ b/packages/@vuepress/core/lib/client/index.ssr.html @@ -5,6 +5,7 @@ {{ title }} + {{{ userHeadTags }}} {{{ pageMeta }}} {{{ renderResourceHints() }}} diff --git a/packages/@vuepress/core/lib/node/build/index.js b/packages/@vuepress/core/lib/node/build/index.js index 19ffc11e6d..912eca8c23 100644 --- a/packages/@vuepress/core/lib/node/build/index.js +++ b/packages/@vuepress/core/lib/node/build/index.js @@ -10,6 +10,7 @@ const createClientConfig = require('../webpack/createClientConfig') const createServerConfig = require('../webpack/createServerConfig') const { createBundleRenderer } = require('vue-server-renderer') const { normalizeHeadTag, applyUserWebpackConfig } = require('../util/index') +const { version } = require('../../../package') /** * Expose Build Process Class. @@ -147,7 +148,8 @@ module.exports = class Build extends EventEmitter { pageMeta, title: 'VuePress', lang: 'en', - description: '' + description: '', + version } let html