We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2964567 commit 1c3a09bCopy full SHA for 1c3a09b
src/plugin.ts
@@ -4,7 +4,7 @@ import boxen from 'boxen';
4
import { cyan, underline } from 'kleur/colors';
5
import logSymbols from 'log-symbols';
6
7
-import type { Plugin, UserConfig } from 'vite';
+import type { ConfigEnv, Plugin, UserConfig } from 'vite';
8
9
type PluginOptions = {
10
hideInfoBox?: boolean;
@@ -23,7 +23,7 @@ type PluginOptions = {
23
export default function DevcertPlugin(options: PluginOptions = {}): Plugin {
24
return {
25
name: '@idleberg/vite-plugin-devcert',
26
- config: async (userConfig: UserConfig, { command }) => {
+ config: async (userConfig: UserConfig, { command }: ConfigEnv) => {
27
if (command !== 'serve') {
28
return;
29
}
0 commit comments