diff --git a/index.html b/index.html new file mode 100644 index 0000000..f7522fb --- /dev/null +++ b/index.html @@ -0,0 +1,42 @@ + + + + + Page Flip Vanilla JS + + + +
+ + + + + + + + + + + \ No newline at end of file diff --git a/sample-local-pdf.pdf b/sample-local-pdf.pdf new file mode 100644 index 0000000..4603bd3 Binary files /dev/null and b/sample-local-pdf.pdf differ diff --git a/webpack.config.js b/webpack.config.js index dbce4db..23241ab 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -12,6 +12,14 @@ const base = { }, }, 'pdf.worker': 'pdfjs-dist/build/pdf.worker.entry', + 'book.pdf': { + import: './test/book-pdf.js', + library: { + name: 'book', + type: 'umd', + umdNamedDefine: true, + }, + }, }, output: { filename: '[name].js',