We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
目前的逻辑是:
'/'
''
'runtime'
存在的问题是:
Webpack 的做法是:
'auto'
document.currentScript
__webpack_public_path__
讨论点:
runtimePublicPath
The text was updated successfully, but these errors were encountered:
我的观点:
runtime
publicPath
auto
Sorry, something went wrong.
I'll close it and reopen it if necessary.
sorrycc
No branches or pull requests
目前的逻辑是:
'/'
''
也会兜底到默认值'runtime'
特殊值开启运行时 publicPath存在的问题是:
''
,但有内部框架里默认值是''
'runtime'
就无法设置初始值了,但运行时动态修改和初始值其实是两个场景Webpack 的做法是:
''
,相对路当前 url 加载'auto'
,基于document.currentScript
相对于脚本路径加载'runtime'
,而是提供__webpack_public_path__
全局变量作为修改入口讨论点:
''
'runtime'
上提到框架自己实现,或者单独变成runtimePublicPath
的配置'auto'
,目前看优先级倒是不高The text was updated successfully, but these errors were encountered: