-
Notifications
You must be signed in to change notification settings - Fork 70
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
[Feature]: app plugin 中配置 devServer 的问题 #173
Comments
可以讨论一下? |
我们参考create-react-app的方式在做吧 |
还有就是 |
先讨论一下吧,我是觉得参照create-react-app的用法比较合适。 |
+1,通过配置在这个场景确实不太灵活�,直接用 |
这个配置中除了代理还有那些功能是缺失的? |
我们不应该把webpack-dev-server的所有功能都暴露给用户,那样的话用户就不需要我们了,直接自己配置webpack就完事了。 |
嗯,我看了一下 |
OK,上班前正好有时间 |
自己写了个代理插件,但是在单页下build-plugin-rax-app这个插件里,在before里拦截了 app.get,早早的就 res.send() 出去了,后面啥也干不了,只能重制 before 吗? |
重置 before 带来的问题是会丢掉服务启动等待时自动刷新页面的能力 |
表现
目前
build-plugin-rax-app
支持配置devServer
字段,但是支持以下字段:其中的字段名和
webpack-dev-server
是一致的,但是并不全,比如在 Web 场景中常见的存在跨域问题,需要设置其中的proxy
,用户需要单独写一个插件来做这件事预期
既然已经有
devServer
,应该是和 webpack-dev-server 暴露出的所有字段一致?The text was updated successfully, but these errors were encountered: