Skip to content

Fix build script to copy Vite chunk files#1

Open
mxm0z wants to merge 1 commit into
IFAKA:mainfrom
mxm0z:fix/build-script-missing-chunks
Open

Fix build script to copy Vite chunk files#1
mxm0z wants to merge 1 commit into
IFAKA:mainfrom
mxm0z:fix/build-script-missing-chunks

Conversation

@mxm0z

@mxm0z mxm0z commented Dec 1, 2025

Copy link
Copy Markdown

Summary

The build script was missing the vendor.js, ui.js, and utils.js files that Vite generates during code-splitting. This caused the popup to show as a blank window since those dependencies couldn't be loaded.

Changes

  • Copy vendor.js, ui.js, utils.js to root directory
  • Fix paths in popup.html from ../ to ./
  • Clean up chunk files during rebuild

Test plan

  • Run npm run build:extension
  • Load the extension in Chrome
  • Click the extension icon - popup should render correctly

The build script was missing the vendor.js, ui.js, and utils.js files
that Vite generates during code-splitting. This caused the popup to
show as a blank window since those dependencies couldn't be loaded.

Changes:
- Copy vendor.js, ui.js, utils.js to root directory
- Fix paths in popup.html from "../" to "./"
- Clean up chunk files during rebuild
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant