Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
static-ci
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
陈峰
8 years ago
Commit
b9199290cdf10bbb6f595f2cf9a34b54e27a6512
1 parent
6bb36875
sourcemap load not append .map
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
apps/api/actions/source-map.js
apps/api/actions/source-map.js
View file @
b919929
...
...
@@ -8,6 +8,10 @@ let r = new Router();
r
.
get
(
'/load'
,
(
ctx
,
next
)
=>
{
const
reqPath
=
ctx
.
request
.
query
.
path
;
if
(
!
reqPath
)
{
return
next
();
}
reqPath
+=
'.map'
;
const
filePath
=
path
.
join
(
config
.
sourceMapDir
,
reqPath
);
if
(
fs
.
existsSync
(
filePath
))
{
...
...
Please
register
or
login
to post a comment