Skip to content

Commit

Permalink
feat: Upgrade vite to 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
liuweiGL committed Nov 20, 2023
1 parent 8c2c0b1 commit ac39d72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit ac39d72

Please # to comment.