exporting javascript #5
Replies: 2 comments 1 reply
-
if you want to add the code you provided to the devtools.html file, you can create a new devtools.tsx file in the pages directory and add the following code
this code'ill create a new devtools panel named "My Panel" when the DevTools page is loaded. |
Beta Was this translation helpful? Give feedback.
-
In this case I would create another Next.js directory to output the |
Beta Was this translation helpful? Give feedback.
-
Hi, I keep bumping into your repo when looking into nextJS and chrome-extensions 👋🏻
I am wondering HOW would you go about adding javascript file or another page to it? Lets say you need a
devtools.html
you would create a devtools.tsx page right? but how would you go about writing the necessary javascript to that page only?Lets say you want a typescript file that has
To be loaded by the devtools.html file?
Beta Was this translation helpful? Give feedback.
All reactions