Skip to content

Commit a5917ca

Browse files
committed
feat: Allow excluding "Reload Manager" extension (#4)
1 parent 9d2df23 commit a5917ca

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/cmd/run.js

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export default async function run(
3333
noInput = false,
3434
noReload = false,
3535
preInstall = false,
36+
noReloadManagerExtension = false,
3637
sourceDir,
3738
watchFile,
3839
watchIgnored,
@@ -197,6 +198,7 @@ export default async function run(
197198
chromiumBinary,
198199
chromiumProfile,
199200
customChromiumPrefs,
201+
noReloadManagerExtension,
200202
};
201203

202204
const chromiumRunner = await createExtensionRunner({

src/extension-runners/chromium.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ export class ChromiumExtensionRunner {
139139
this.reloadManagerExtension = await this.createReloadManagerExtension();
140140

141141
// Start chrome pointing it to a given profile dir
142-
const extensions = [this.reloadManagerExtension]
142+
const extensions = (
143+
this.params.noReloadManagerExtension ? [] : [this.reloadManagerExtension]
144+
)
143145
.concat(this.params.extensions.map(({ sourceDir }) => sourceDir))
144146
.join(',');
145147

0 commit comments

Comments
 (0)