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

在chrome中调试时找不到js和css以及相应的map文件 #89

Open
CellOcean opened this issue Dec 7, 2016 · 2 comments
Open

在chrome中调试时找不到js和css以及相应的map文件 #89

CellOcean opened this issue Dec 7, 2016 · 2 comments

Comments

@CellOcean
Copy link

在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页面里也找不到对应的文件。
image

只有.html 和.less 文件

proxy.config.js的配置如下
module.exports = {
// Forward 到另一个服务器
'GET /api/': 'http://localhost:8080/',
'POST /api/
': 'http://localhost:8080/',

}

@infeng
Copy link

infeng commented Dec 16, 2016

能不能提供一个demo来看下

@light-1986
Copy link

webpackConfig.devtool = 'cheap-module-source-map';

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

3 participants