Skip to content

Conversation

@AbeJellinek
Copy link
Member

  • Adds a new build:zotero command. Instead of building all the configs, including dev-only ones, it just builds pdf.js and the zotero config. Brings build time down from 0:56 to 0:35.
  • Tightens some Webpack matching rules. Brings build time down to 0:32.
  • Builds pdf.js using the generic and minified configs instead of generic-legacy and minified-legacy. I believe this is fine now that our Firefox version is relatively up to date, but @mrtcode, let me know if that's not the case. Brings build time down to 0:27.
  • Only builds the minified pdf.js config when needed. Brings build time down to 0:20.

Once this is merged and the submodule is updated in zotero/zotero, we can adjust the build script there to call npm run build:zotero for a pretty significant speed boost.

Any further optimization would need to happen within the pdf.js build process, which accounts for something like 16 of the remaining 20 seconds of build time.

@AbeJellinek AbeJellinek requested a review from mrtcode December 15, 2025 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant