Skip to content
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

Bug: 访问不到public目录中的静态资源 #4788

Closed
5 tasks done
9ilfoyl3 opened this issue Nov 1, 2024 · 1 comment
Closed
5 tasks done

Bug: 访问不到public目录中的静态资源 #4788

9ilfoyl3 opened this issue Nov 1, 2024 · 1 comment

Comments

@9ilfoyl3
Copy link
Contributor

9ilfoyl3 commented Nov 1, 2024

Version

Vben Admin V5

Describe the bug?

在public目录下有pdf.js的静态资源和些图片,开发中引入后提示404。
image
image

构建后,pdf文件夹存在于dist目录中。

Reproduction

image
image

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (4) x64 Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz
    Memory: 8.09 GB / 31.86 GB
  Binaries:
    Node: 21.4.0 - C:\vdisk\env\node\node.EXE
    npm: 10.2.4 - C:\vdisk\env\node\npm.CMD
    pnpm: 9.10.0 - C:\vdisk\env\node\pnpm.CMD
  Browsers:
    Edge: Chromium (128.0.2739.54)
    Internet Explorer: 11.0.19041.4355

Relevant log output

No response

Validations

@9ilfoyl3
Copy link
Contributor Author

9ilfoyl3 commented Nov 2, 2024

通过 #1822 中提供的修改vite-plugin-html插件后解决。

@9ilfoyl3 9ilfoyl3 closed this as completed Nov 2, 2024
9ilfoyl3 pushed a commit to 9ilfoyl3/vue-vben-admin that referenced this issue Nov 4, 2024
anncwb pushed a commit that referenced this issue Nov 4, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Nov 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant