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
在chrome中调试时找不到js和css以及相应的map文件
执行命令 dora --plugins "proxy,atool-build?devtool=source-map,webpack-hmr,browser-history?index=/src/index.html\
后,通过 localhost:8000访问,能打开页面,但是点击登陆按钮后,控制台报错 POST http://localhost:8000/api/login 405 (Method Not Allowed)
通过 localhost:8989访问,能打开页面,但是点击登陆按钮后,可以正常发送post到 位于8080端口的java rest api服务。
但是,在chrome中调试时找不到js和css以及相应的map文件。 dora控制台的信息是: proxy: GET /common.js.map don't match any rule, forward to 127.0.0.1:8000
在chrome的sources页面里也找不到对应的文件。
只有.html 和.less 文件
proxy.config.js的配置如下 module.exports = { // Forward 到另一个服务器 'GET /api/': 'http://localhost:8080/', 'POST /api/': 'http://localhost:8080/',
}
The text was updated successfully, but these errors were encountered:
能不能提供一个demo来看下
Sorry, something went wrong.
webpackConfig.devtool = 'cheap-module-source-map';
No branches or pull requests
在chrome中调试时找不到js和css以及相应的map文件
执行命令
dora --plugins "proxy,atool-build?devtool=source-map,webpack-hmr,browser-history?index=/src/index.html\
后,通过 localhost:8000访问,能打开页面,但是点击登陆按钮后,控制台报错
POST http://localhost:8000/api/login 405 (Method Not Allowed)
通过 localhost:8989访问,能打开页面,但是点击登陆按钮后,可以正常发送post到
位于8080端口的java rest api服务。
但是,在chrome中调试时找不到js和css以及相应的map文件。
dora控制台的信息是:
proxy: GET /common.js.map don't match any rule, forward to 127.0.0.1:8000
在chrome的sources页面里也找不到对应的文件。
只有.html 和.less 文件
proxy.config.js的配置如下
module.exports = {
// Forward 到另一个服务器
'GET /api/': 'http://localhost:8080/',
'POST /api/': 'http://localhost:8080/',
}
The text was updated successfully, but these errors were encountered: