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

devServer 的 historyApiFallback 配置不生效 #15281

Closed
songwenhui opened this issue Feb 27, 2024 · 1 comment · Fixed by #15310 or #15361
Closed

devServer 的 historyApiFallback 配置不生效 #15281

songwenhui opened this issue Feb 27, 2024 · 1 comment · Fixed by #15310 or #15361
Labels
enhancement New feature or request T-h5 Target - 编译到 H5

Comments

@songwenhui
Copy link

这个特性解决了什么问题?

多页面配置 history 模式,dev 环境下 devServer 需配置 historyApiFallback,指向对应的 html,目前的状态是配置后不生效,发现源码中有配置 { from: /./, to: publicPath },导致 merge 到后边的配置均失效,是否有相关解决办法?
感觉应该在 merge 后,再配置 { from: /./, to: publicPath }

这个 API 长什么样?

期望 historyApiFallback 配置生效

@taro-bot2 taro-bot2 bot added enhancement New feature or request labels Feb 27, 2024
@ZakaryCode ZakaryCode added the T-h5 Target - 编译到 H5 label Feb 28, 2024
@zouchao1
Copy link

zouchao1 commented Mar 1, 2024

如何解决呀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request T-h5 Target - 编译到 H5
Projects
Archived in project
3 participants