fix (pdf): js based pdfviewer as fallback

This commit is contained in:
Mickael Kerjean
2022-11-25 17:14:34 +11:00
parent bb8fcfda91
commit 42e7c10c41
2 changed files with 4 additions and 4 deletions

View File

@ -73,8 +73,8 @@ const config = {
{ from: "assets/fonts/*" },
], { context: path.join(__dirname, "client") }),
new CopyWebpackPlugin([
{ from: "node_modules/pdfjs-dist/build/*.js", to: "assets/vendor/pdfjs/2.6.347/build/" },
{ from: "node_modules/pdfjs-dist/cmaps/", to: "assets/vendor/pdfjs/2.6.347/cmaps/" },
{ from: "node_modules/pdfjs-dist/build/*.js", to: "assets/vendor/" },
{ from: "node_modules/pdfjs-dist/cmaps/*", to: "assets/vendor/" },
]),
// new BundleAnalyzerPlugin()
],