feat(pdf-viewer): add postinstall script for pdfjs worker and simplify pdf rendering

This commit is contained in:
2025-11-17 11:20:20 +08:00
parent 3118fa4f1b
commit 3ab77361a1
4 changed files with 68 additions and 29 deletions

View File

@@ -8,7 +8,8 @@
"dev:ragflow": "pnpm -r --filter ragflow_web run dev",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview"
"preview": "vite preview",
"postinstall": "node scripts/copy-pdfjs-worker.mjs"
},
"dependencies": {
"@emotion/react": "^11.14.0",