Skip to content

Commit

Permalink
feat: enable Rsbuild CLI shortcuts (#1456)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Oct 9, 2024
1 parent fd8ca41 commit be6dcfb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/node/initRsbuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ async function createInternalBuildConfig(
middlewares.unshift(serveSearchIndexMiddleware(config));
},
],
cliShortcuts: {
// does not support restart server yet
custom: shortcuts => shortcuts.filter(({ key }) => key !== 'r'),
},
},
html: {
title: config?.title ?? DEFAULT_TITLE,
Expand Down

0 comments on commit be6dcfb

Please sign in to comment.