Skip to content

Commit 07a4cd8

Browse files
authored
feat: Allow excluding "Reload Manager" extension (#4)
1 parent 90e2e5a commit 07a4cd8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/cmd/run.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export default async function run(
3131
noInput = false,
3232
noReload = false,
3333
preInstall = false,
34+
noReloadManagerExtension = false,
3435
sourceDir,
3536
watchFile,
3637
watchIgnored,
@@ -194,6 +195,7 @@ export default async function run(
194195
chromiumBinary,
195196
chromiumProfile,
196197
customChromiumPrefs,
198+
noReloadManagerExtension,
197199
};
198200

199201
const chromiumRunner = await createExtensionRunner({

src/extension-runners/chromium.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ export class ChromiumExtensionRunner {
136136
this.reloadManagerExtension = await this.createReloadManagerExtension();
137137

138138
// Start chrome pointing it to a given profile dir
139-
const extensions = [this.reloadManagerExtension]
139+
const extensions = (
140+
this.params.noReloadManagerExtension ? [] : [this.reloadManagerExtension]
141+
)
140142
.concat(this.params.extensions.map(({ sourceDir }) => sourceDir))
141143
.join(',');
142144

0 commit comments

Comments
 (0)