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

怎么设置publicPath? #16

Open
sjmlsxp opened this issue Dec 28, 2020 · 3 comments
Open

怎么设置publicPath? #16

sjmlsxp opened this issue Dec 28, 2020 · 3 comments

Comments

@sjmlsxp
Copy link

sjmlsxp commented Dec 28, 2020

移除publicPathProd和publicPathTest两个参数,打包文件引用路径统一使用绝对路径

请问这个绝对路径怎么配置?

@JowayYoung
Copy link
Owner

暂时不会配置绝对路径,考虑到路径的复杂性,打包后的文件会直接使用 css/xxx.css,js/xxx.js这样的形式

@sjmlsxp
Copy link
Author

sjmlsxp commented Jan 14, 2021

打包后的文件

生成的静态资源是分开存的,
html会放在服务器上,其他在oss,
所以想在打包的时候把OSS地址打进html里面

不能配置绝对路径的话,就要打包完成后手动修改,这样太麻烦了

@JowayYoung
Copy link
Owner

在下一个版本增加该功能,谢谢反馈哈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants