"browser_action": {
"default_popup": "popup.html"
},
<!DOCTYPE html>
<html lang="en">
<head>
<title>Slingshow</title>
<script src="./build/popup.js" defer></script>
<link rel="stylesheet" href="./tailwind.css" />
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
</body>
</html>
import React, { useState, useEffect } from "react";
import ReactDOM from "react-dom";
import browser from "webextension-polyfill";
const debug = require("debug")("app:popup");
debug("Running popup");
function Popup() {
return (<div> Pop pop </div>);
}
ReactDOM.render(<Popup />, document.getElementById("root"));
Then you need to build the popup.js using parcel/webpack which it is then built in build/popup.js
html,
body {
width: 800px;
height: 600px;
}