Skip to content

Commit

Permalink
feat(plugin): plugin only works in serve mode
Browse files Browse the repository at this point in the history
  • Loading branch information
liuweiGL committed Jun 1, 2021
1 parent bee34ee commit d471652
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d471652

Please sign in to comment.