-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
URL of public
assets is wrong in built CSS files if assetsDir
is set and base
is './'
#3650
Comments
public 里的资源要以 |
将base设置成'./'后,构建出来的css文件中的路径还是错误的,我代码已经上传了Github Repo Link,vue-cli中生成的路径都是正常的 |
你这个用法有点太特殊了…… |
assetsDir
is set and base
is './'
assetsDir
is set and base
is './'
assetsDir
is set and base
is './'
assetsDir
is set and base
is './'
public
assets is wrong in built CSS files if assetsDir
is set and base
is './'
After upgrading to 3.0.0-alpha.1, it worked. I assume #7644 has fixed this. |
Describe the bug
当我将静态资源(图片,字体)放在public文件下时,打包之后,css文件中静态资源引用路径不对
Reproduction
Github Repo Link
System Info
System:
OS: macOS Mojave 10.14.6
CPU: (4) x64 Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz
Memory: 986.89 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 14.16.0 - /usr/local/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.11 - /usr/local/bin/npm
Browsers:
Chrome: 91.0.4472.77
Safari: 14.1
npmPackages:
vite: ^2.3.5 => 2.3.5
Used package manager:
Logs
Before submitting the issue, please make sure you do the following
The text was updated successfully, but these errors were encountered: