Closed ziedHamdi closed 1 year ago
I think you may have missed this note in the readme:
🚧 If you are using SvelteKit v1.0.0+, make sure to set your prerender=true for every page reference by your extension so SvelteKit generates the HTML files.
So add a src/routes/+layout.js
file which looks like this:
export const prerender = true;
You can see the Svelte Kit docs for that option here and they also have a note about using it with Static Site Generation here.
Great!
Thank you, that worked.
Hi,
I'm a react developer seduced by the svelte syntax, so I thought I'd write my next chrome extension with it.
My build directory is missing the html file:
I started a new project in a few steps: npm init svelte@latest
pnpm i -D sveltekit-adapter-chrome-extension changed the svelte.config.js and added a manifest.json to the static dir pnpm run build
Did I miss something in the process? I can't find the html file
Here's my project structure: