mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Update the webpack
example to account for outputting of JavaScript modules (PR 17055 follow-up)
*Please note:* While following the steps in the README still works with this patch, in the sense that the example runs and successfully renders a PDF document, I unfortunately cannot tell if it illustrates Webpack best practices.
This commit is contained in:
parent
9ec2fda09f
commit
d7b39fe696
7 changed files with 34 additions and 69 deletions
|
@ -6,8 +6,8 @@ const path = require("path");
|
|||
module.exports = {
|
||||
context: __dirname,
|
||||
entry: {
|
||||
main: "./main.js",
|
||||
"pdf.worker": "pdfjs-dist/build/pdf.worker.entry",
|
||||
main: "./main.mjs",
|
||||
"pdf.worker": "pdfjs-dist/build/pdf.worker.mjs",
|
||||
},
|
||||
mode: "none",
|
||||
output: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue