Skip to content

Commit b8fcc48

Browse files
Improve extension loading and cross-platform cleanup instructions
Co-authored-by: PeterDaveHello <[email protected]>
1 parent fd76a40 commit b8fcc48

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/copilot-instructions.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ Production build creates multiple variants in `build/` directory:
5454
Since this is a browser extension with no automated tests, ALWAYS manually test functionality:
5555

5656
1. **Load Extension in Browser:**
57-
- Chrome: Go to `chrome://extensions/`, enable Developer Mode, click "Load unpacked", select `build/chromium/`
58-
- Firefox: Go to `about:debugging#/runtime/this-firefox`, click "Load Temporary Add-on", then choose the built add-on by selecting the generated `.xpi` file. If loading from an unpacked build is required, choose the `manifest.json` inside `build/firefox/` (do not select the folder directly). Note: Temporary add-ons are removed on browser restart.
59-
- **Important**: Extension files cannot be tested by serving them via HTTP server - they must be loaded as a proper browser extension
57+
- Chrome: Go to `chrome://extensions/`, enable Developer Mode, click "Load unpacked", then select the folder `build/chromium/` (the folder must contain `manifest.json`).
58+
- Firefox: Go to `about:debugging#/runtime/this-firefox`, click "Load Temporary Add-on", then choose the generated `.xpi` file from `build/` (recommended). To load unpacked instead, select the `manifest.json` file inside `build/firefox/` (do not select the folder directly). Note: Temporary add-ons are removed on browser restart.
59+
- **Important**: Extension files cannot be tested by serving them via HTTP server they must be loaded as a proper browser extension.
6060

6161
2. **Core Functionality Tests:**
6262
- Press `Ctrl+B` (Windows/Linux) or `⌘+B` (macOS) to open the chat dialog on any webpage
@@ -166,7 +166,9 @@ The extension supports multiple AI providers:
166166

167167
### Build Issues
168168

169-
- Build failures: Check Node.js version (requires Node 20+), clear caches (`rm -rf node_modules && npm ci`) and build caches (`rm -rf node_modules/.cache build/ dist/`)
169+
- Build failures: Check Node.js version (requires Node 20+), clear caches and rebuild.
170+
- macOS/Linux: `rm -rf node_modules && npm ci && rm -rf node_modules/.cache build/ dist/`
171+
- Windows (PowerShell): `Remove-Item -Recurse -Force node_modules, build, dist; if (Test-Path node_modules\.cache) { Remove-Item -Recurse -Force node_modules\.cache }; npm ci`
170172
- Safari build fails: Ensure macOS with Xcode installed
171173
- "Module not found" errors: Usually indicate missing `npm ci`
172174

0 commit comments

Comments
 (0)