Repository navigation
docs: Vite plugin demo app and README for 4.6.0 - #85
Merged
Merged
Conversation
demo/vite-plugin is a minimal Vite app that installs the published package and uses the plugin; its PDF holds one CCITT image, which stays white when the app is built without the plugin. The README names the Vite-based frameworks, links the docs' new Vite plugin and other-bundlers sections, and points to the caching note before an upgrade. .gitignore now ignores only the root public/ folder, so the demo can keep its PDF in its own public/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
All reported issues were addressed across 9 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
The README says what to do about an immutable cache instead of only pointing to the docs. The assets-base demo comment no longer reads as if the demo loads from a CDN. The Vite plugin demo lays the page out as a flex column, so the viewer fills what the text leaves on any width instead of a fixed calc(). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
README and demo for the Vite plugin released in 4.6.0 (#84). The hosted docs change in missing-elements.github.io#108.
demo/vite-plugin/is a minimal Vite app with the plugin. It installs the published package (^4.6.0), so it doesn't depend on a local build. Its PDF holds one scanned image compressed with CCITT, which PDF.js decodes withwasm/jbig2.wasm. Its README says how to run it and how to see the problem the plugin solves.assets-base. Both link to the new docs sections, and the cache note points to the docs before an upgrade.demo/assets-base.html: its comment said bundlers don't needassets-base. Bundled apps do need it for the data, unless they use the plugin..gitignore:public→/public, so only the root folder the sync script fills is ignored and the demo can keep its PDF in its ownpublic/. The lockfile the demo creates is ignored.Note for the README links
#vite-pluginand#other-bundlers-and-assets-baseexist only after the docs PR merges. Merge that one first, or together with this one.Validation
The demo was installed from npm into a scratch folder (4.6.0, Vite 8.3.8), built, served with
vite previewand opened in Firefox:Unable to decode image "img_p0_1": "Jbig2Error: JBig2 failed to initialize"vite dev, without the pluginvite previewanswers the missingassets/wasm/files with the app's HTML page and a 200, not a 404, so the demo's README describes the console warning rather than a 404.Checklist
🤖 Generated with Claude Code
Summary by cubic
Adds a minimal Vite demo app and updates the README to document the Vite plugin shipped in 4.6.0. The demo installs the published package and reproduces the blank-page problem that occurs when an app is built without the plugin.
demo/vite-plugin/is a minimal Vite app with a CCITT-compressed scan; built without the plugin the image stays white with aJbig2Errorconsole warning.distplusassets-base, linking to the new docs sections. It also says what to do when the host caches assets asimmutable..gitignorenow ignores only the rootpublic/folder so the demo can keep its PDF, and ignores the demo's generated lockfile.assets-base.htmlcomment now notes that bundled apps need it for the PDF.js data unless they use the plugin.Written for commit 35750b4. Summary will update on new commits.