From 58ac69010447ccb7107271f882b1fcc88fbf7a33 Mon Sep 17 00:00:00 2001 From: Jacob Trimble Date: Wed, 6 Apr 2016 11:05:03 -0700 Subject: [PATCH] Paths in source map should be relative. 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 --- build/build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/build.py b/build/build.py index f917c6463a..26768e27fb 100755 --- a/build/build.py +++ b/build/build.py @@ -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