更新pdf
This commit is contained in:
@@ -9,5 +9,11 @@ export default defineConfig({
|
||||
server: {
|
||||
port: 5173,
|
||||
},
|
||||
assetsInclude: ["**/*.pdf"], // 确保 PDF 文件被当作静态资源处理
|
||||
assetsInclude: ["**/*.pdf", "**/pdf.worker.min.js"], // 确保 PDF 和 worker 文件被当作静态资源处理
|
||||
build: {
|
||||
rollupOptions: {
|
||||
// 确保 worker 文件不被打包,而是作为独立文件
|
||||
external: [],
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user