From d4716521ae6acf1b7f876e6d212a56161fa74089 Mon Sep 17 00:00:00 2001 From: liuwei Date: Tue, 1 Jun 2021 16:54:02 +0800 Subject: [PATCH] feat(plugin): plugin only works in serve mode --- packages/plugin/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/plugin/src/index.ts b/packages/plugin/src/index.ts index 60905f6..9e16611 100644 --- a/packages/plugin/src/index.ts +++ b/packages/plugin/src/index.ts @@ -9,6 +9,7 @@ export type ViteCertificateOptions = MkcertOptions const plugin = (options?: ViteCertificateOptions): Plugin => { return { name: PLUGIN_NAME, + apply: 'serve', config: async config => { if (!config.server?.https) { return