egg-plugin-assets 在开发环境下固定资源路径host为127.0.0.1
Open
Inactive
type: improve
- Dominant language
- TypeScript
- Stars
- 19k
- Forks
- 1.8k
- PR merge metrics
- No merged PRs in 30d
Description
## What happens?
A clear and concise description of what the bug is.
https://github.com/eggjs/egg-view-assets/blob/52f2aac23bf34eff576fe2ed1c82a6075874b38b/app.js#L22
这行代码固定了local环境下asset的资源路径为127.0.0.1
做手机页面的时候,需要在手机调试js-sdk功能,这时候的 resourceBase 是127.0.0.1,资源访问不到
## Mini Showcase Repository(REQUIRED)
> Provide a mini GitHub repository which can reproduce the issue.
> Use `npm init egg --type=simple bug` then upload to your GitHub
## How To Reproduce
**Steps to reproduce the behavior:**
1.
2.
**Expected behavior**
1.
2.
## Context
- **Node Version**:
- **Egg Version**:
- **Plugin Name**:
- **Plugin Version**:
- **Platform**:
Contributor guide
Assessment
This issue has not been assessed yet.