Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.8k views
in Technique[技术] by (71.8m points)

使用了vue-pdf 打包之后我dist目录下多了个跟index.html同级的XXX.woker.js

image.png
不影响代码 就是难受
引入vue-pdf是在组件内 import pdf from 'vue-pdf'
把impor注释再打包 这个js就没了 这个vue-pdf是npm装的
强迫症啊


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

人家为了性能 创建了个 Web Workers
因为同源策略就放了个文件


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...