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
58e49bbf4337c742e81a9c50b327208fe74cd4c3
1 parent
820fe52c
commit
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
apps/api/actions/source-map.js
apps/api/actions/source-map.js
View file @
58e49bb
...
...
@@ -11,7 +11,9 @@ r.get('/load', (ctx, next) => {
if
(
!
reqPath
)
{
return
next
();
}
reqPath
=
reqPath
.
split
(
'?'
)[
0
];
reqPath
+=
'.map'
;
console
.
log
(
reqPath
)
const
filePath
=
path
.
join
(
config
.
sourceMapDir
,
reqPath
);
if
(
fs
.
existsSync
(
filePath
))
{
...
...
Please
register
or
login
to post a comment