This is a template for creating Chrome extensions with Next.js, Tailwind, and TypeScript.
- Develop using
npm run dev
and opening localhost:3000 to start the Next.js development server. - Pages are stored in
app/
directory. Modifyapp/page.tsx
to start. - The extension manifest is in
public/manifest.json
. - Anything in the
public
directory will be copied to the root level of your extension, so you may want to stay organized, e.g. assets are stored inpublic/next-assets
.
npm run build
will build your unpacked chrome extension into extension
. Chrome doesn't allow directories starting with _
, so the build script will automatically rewrite the paths for you.
To test your extension, see the Chrome Extension Docs