Skip to content

Commit

Permalink
Paths in source map should be relative.
Browse files Browse the repository at this point in the history
This makes the paths in the source map relative to the dist/
directory so it can be used on a web server correctly.

Closes #323

Change-Id: Ib69ff2e1393548a3ebd1d67520422173a5827704
  • Loading branch information
TheModMaker committed Apr 6, 2016
1 parent b656581 commit 58ac690
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,8 @@ def buildLibrary(self, name, rebuild):
print 'No changes detected, not building. Use --force to override.'
return True

opts = ['--create_source_map', resultMap, '--js_output_file', resultDebug]
opts = ['--create_source_map', resultMap, '--js_output_file', resultDebug,
'--source_map_location_mapping', sourceBase + '|..']
if not self.buildRaw(opts):
return False

Expand Down

0 comments on commit 58ac690

Please sign in to comment.