Fix page titles

This commit is contained in:
Robert Long 2022-02-02 21:48:44 -08:00
commit a189f3ad98
6 changed files with 52 additions and 131 deletions

View file

@ -16,7 +16,7 @@ limitations under the License.
import { defineConfig, loadEnv } from "vite";
import svgrPlugin from "vite-plugin-svgr";
import { createHtmlPlugin } from "vite-plugin-html";
import htmlTemplate from "vite-plugin-html-template";
import path from "path";
// https://vitejs.dev/config/
@ -26,11 +26,9 @@ export default defineConfig(({ mode }) => {
return {
plugins: [
svgrPlugin(),
createHtmlPlugin({
inject: {
data: {
title: env.VITE_PRODUCT_NAME || "Matrix Video Chat",
},
htmlTemplate({
data: {
title: env.VITE_PRODUCT_NAME || "Matrix Video Chat",
},
}),
],