-
Notifications
You must be signed in to change notification settings - Fork 3
Added cdn approach in webpack example #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Added cdn approach in webpack example #42
Conversation
* | ||
* $ USE_NPM=true npm run build | ||
*/ | ||
const useCdn = process.env.USE_NPM !== "true"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add a note about this in webpack example readme
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup it is there. Line 46 onwards.
examples/javascript-vite/src/main.js
Outdated
* - Loads a default sample PDF on page load | ||
*/ | ||
|
||
import dragDrop from "drag-drop"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can simplify this, drag and drop, file selection are not needed, just a simple example that loads the remote PDF (similar to react guide) should be fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Uh oh!
There was an error while loading. Please reload this page.