From ac39d7286470ed01e9d6f912a67e0aa412bc2933 Mon Sep 17 00:00:00 2001 From: liuwei Date: Mon, 20 Nov 2023 10:13:40 +0800 Subject: [PATCH] feat: Upgrade vite to 5.0 --- plugin/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/index.ts b/plugin/index.ts index e849f77..048a536 100644 --- a/plugin/index.ts +++ b/plugin/index.ts @@ -18,7 +18,8 @@ const plugin = (options: MkcertPluginOptions = {}): PluginOption => { name: PLUGIN_NAME, apply: 'serve', config: async ({ server = {}, logLevel }) => { - if (server.https === false) { + // v5.0 以下支持 boolean 类型的 https 配置 + if (typeof server.https === 'boolean' && server.https === false) { return }