Skip to content

Commit

Permalink
feat: 兼容uniapp
Browse files Browse the repository at this point in the history
  • Loading branch information
vtrbo committed Jun 11, 2024
1 parent 96e9248 commit 70e176b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ function createVitePlugin(options?: Options): PluginOption {
configResolved(config) {
ctx.setViteConfig(config)
},
configureServer() {
// 这里使用buildStart钩子是为了兼容uniapp
buildStart() {
ctx.scanEnv()
},
}
Expand Down

0 comments on commit 70e176b

Please sign in to comment.