Skip to content

Commit 87a1411

Browse files
authored
pass mode development during hot reload (#135)
* pass mode development during hot reload * changeset
1 parent 89453db commit 87a1411

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/violet-poets-jam.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@gitbook/cli': minor
3+
---
4+
5+
rebuild in dev mode in the watcher

packages/cli/src/dev.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ export async function startIntegrationsDevServer(space: string | undefined) {
8585
})
8686
.on('all', async () => {
8787
const p1 = performance.now();
88-
console.log('Detected changes, rebuilding...🛠');
88+
console.log('🛠 Detected changes, rebuilding...');
8989
try {
90-
await buildScriptFromManifest(manifestSpecPath);
90+
await buildScriptFromManifest(manifestSpecPath, { mode: 'development' });
9191
console.log(`📦 Rebuilt in ${((performance.now() - p1) / 1000).toFixed(2)}s`);
9292
} catch (error) {
9393
console.log(error);

0 commit comments

Comments
 (0)