From 612253ea4a13d34f86ca4264aafea6c0af049d4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Tue, 1 Dec 2020 10:25:00 +0100 Subject: [PATCH] fix search --- docs/src/index.html | 4 ++-- docs/src/main.js | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/src/index.html b/docs/src/index.html index 8db2b0fc..0aff2f7b 100644 --- a/docs/src/index.html +++ b/docs/src/index.html @@ -2,11 +2,11 @@ ${head} - + ${app} ${scripts} - + diff --git a/docs/src/main.js b/docs/src/main.js index 038e8abe..9c58ff66 100644 --- a/docs/src/main.js +++ b/docs/src/main.js @@ -10,6 +10,15 @@ Prism.manual = true export default function (Vue, { head }) { head.htmlAttrs = { 'data-theme': 'dark' } + // fix docsearch + if (!window.process) { + window.process = { + env: { + NODE_ENV: 'production', + }, + } + } + Vue.use(PortalVue) Vue.component('Layout', App) Vue.component('Demo', () => import(/* webpackChunkName: "demo" */ '~/components/Demo'))