question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to use with newtab.html?

See original GitHub issue

My use case is a new tab. In public/manifest.json I want to be able to add public/newtab.html so that:

"chrome_url_overrides": {
    "newtab": "newtab.html"
},

and it to magically reload every time I make a change to src/App.js. It works if I change manifest.json to

"chrome_url_overrides": {
    "newtab": "popup.html"
},

but I’d like the ability to have more than one file being watched/served, or to customise the one that is being watched/served.

Thanks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
VasilyShelkovcommented, Jan 15, 2021

The latest release of create-react-extension now supports the options.html page.

For those wanting to update to support the new options page, just update react-browser-extension-scripts to version 4.0.10 and add the following files:

This version might looks strange, I intend to follow the versions of react-scripts and add 0-9 for any specific create-react-extension features that are released

2reactions
VasilyShelkovcommented, Aug 28, 2020

Hi @frenetix, thanks for asking. I haven’t been very active on this project recently. I will like to add support for this soon but don’t want to promise anything this week because I’ve just moved house. I will give another update by Friday 4th of September as this is a feature I think would widen how many people use this project (and therefore useful for others).

Still if anyone would like to add a PR, they are very welcome as well. I appreciate it might not be the most obvious thing to do without digging a bit deeper into the project and understanding how CRA works

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Use HTML to Open a Link in a New Tab - freeCodeCamp
It's easy to use HTML to open a link in a new tab. You just need an anchor ( <a> ) element with...
Read more >
Open link in new tab or window - html - Stack Overflow
Using _blank will tell the browser to use a new tab/window, depending on the user's browser configuration and how they click on the...
Read more >
The a target attribute - W3Schools Tryit Editor
The a target attribute ... Visit W3Schools.com! If you set the target attribute to "_blank", the link will open in a new browser...
Read more >
How to Make Links Open in a New Window or Tab
How to Open Hyperlinks in a New Browser Tab or Window ... The short answer is: just add a target="_blank" attribute to your...
Read more >
How To Use The <a> To Make Links & Open Them ... - HTML
a target=”_blank” Open in New Browser Tab (or Window) ... The target attribute specifies where the linked document will open when the link...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found