-
Notifications
You must be signed in to change notification settings - Fork 582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Help] 开发环境读public下的文件可以展示,打包后找不到文件 #498
Labels
help wanted
Extra attention is needed
Comments
请提供依赖版本,或者最小代码复现。 |
请提供一个复现的代码连接。截图看不出来。 |
node -v |
兄弟尝试一下这个api assetsinclude
|
也不好使,唯一好使的只能是import 图片 from 地址。 |
我也遇到这个问题了,之前用nsis的时候,还可以直接复制一些目录进去,不知道electron那个可以操作不 |
我有遇到類似問題,好像是路徑寫在變數中會解析不完整。最後是在main process fork 一個 express server,讓生產環境跑在 http 上面,算是個 work around |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
小白刚开始用electron
在开发环境使用public文件下的文件页面可以展示
打包成win版本后路径就错误了,图片无法加载出来
请问我是缺少哪些配置吗。
The text was updated successfully, but these errors were encountered: