the layout is:
html pages and global css are in the pages
folder
source code is in the src
folder
manifest.json
and icons are in the folder named root
config files are in the top level
html pages include script files from src with script tags:
<script type="module" src="../src/foo-page.ts"></script>
vite and rollup are configured with dist/unpacked
as an output folder
the intent is that packed extension file will be created in the dist
from unpacked
package.json
has build
and watch
scripts
{delegateEvents: false}
option for solidPlugin
in vite.config.js
is necessary only because there's an iframe for devtools panel, and the things are set up so that render()
is called in the context of the main devtools window, but it renders DOM in the element which is inside the iframe
.