Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-start with test page in dev #216

Open
tom2strobl opened this issue Oct 24, 2024 · 2 comments · May be fixed by #219
Open

Auto-start with test page in dev #216

tom2strobl opened this issue Oct 24, 2024 · 2 comments · May be fixed by #219

Comments

@tom2strobl
Copy link
Collaborator

Hi there,

I would like to automatically open up a test page in chrome only in dev when running my dev command (so no manifest stuff). I'll serve the page myself locally (localhost:3008), but I'm struggling to find a way to start the browser with the page opened.

I tried all of these (separately) in extension.config.js but none of them seemed to work:

// https://www.chromium.org/administrators/configuring-other-preferences/
browser: {
  chrome: {
    browserFlags: ['--startup-page="https://localhost:3008'],
    preferences: {
      homepage: 'https://localhost:3008',
      homepage_is_newtabpage: true,
      session: {
        startup_urls: ['https://localhost:3008']
      }
    }
  }
}
@cezaraugusto
Copy link
Member

hey @tom2strobl, great to see you here again!

yeah, extension.config.js should provide a "startingUrl" option for each browser field and we should also have a --start-url flag or something so users can extension dev --starting-url=https://example.com. Documentation is in its early days so these are likely not documented.

I'll be checking on this at some point for sure but if you're feeling adventurous I can definitely help reviewing a PR to either fix what is supposed to work or just add it to the docs.

btw added you as a collaborator to the project in case you want to get more involved. thanks for the recent reports!

@tom2strobl
Copy link
Collaborator Author

Yeah it's really extremely low priority, so don't feel obligated to take a look anytime soon. Thanks for the invite, I'll see if I can contribute anything worthwile

@cezaraugusto cezaraugusto linked a pull request Nov 1, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants