Skip to content

Commit

Permalink
feat: add mako hooks (#12412)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinbao1001 committed May 22, 2024
1 parent 1f84be6 commit db15285
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/preset-umi/src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ umi build --clean
config: {
outputPath: api.userConfig.outputPath || 'dist',
...api.config,
hooks: api.config.mako?.hooks || {},
} as IServicePluginAPI['config'],
cwd: api.cwd,
entry,
Expand Down
1 change: 1 addition & 0 deletions packages/preset-umi/src/commands/dev/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ PORT=8888 umi dev
config: {
outputPath: api.userConfig.outputPath || 'dist',
...api.config,
hooks: api.config.mako?.hooks || {},
},
pkg: api.pkg,
cwd: api.cwd,
Expand Down

0 comments on commit db15285

Please sign in to comment.