Skip to content

Instantly share code, notes, and snippets.

@darwin
Created February 9, 2020 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darwin/f9e883eef4629d462edc871b6830a4d5 to your computer and use it in GitHub Desktop.
Save darwin/f9e883eef4629d462edc871b6830a4d5 to your computer and use it in GitHub Desktop.
diff --git a/src/main/shadow/build/output.clj b/src/main/shadow/build/output.clj
index 7218596c..481287d0 100644
--- a/src/main/shadow/build/output.clj
+++ b/src/main/shadow/build/output.clj
@@ -185,8 +185,11 @@
(let [sm-suffix
(get-in state [:compiler-options :source-map-suffix] ".map")
+ sm-prefix
+ (get-in state [:compiler-options :source-map-prefix] "")
+
sm-text
- (str "\n//# sourceMappingURL=" output-name sm-suffix "\n")
+ (str "\n//# sourceMappingURL=" sm-prefix output-name sm-suffix "\n")
src-map-file
(io/file (str (.getAbsolutePath js-file) sm-suffix))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment