Skip to content

Commit

Permalink
fix preamble source maps
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jul 25, 2016
1 parent 7d9c070 commit 857c0ef
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,10 @@ test: compile
open test/test-csp.html test/test-tracer.html

dist/system-polyfills.js: dist/system-polyfills.src.js
@echo "$$POLYFILLS_BANNER" > $@
cd dist && ../node_modules/.bin/uglifyjs $(subst dist/,,$<) --compress drop_console --mangle --source-map system-polyfills.js.map >> $(subst dist/,,$@) || rm $(subst dist/,,$@)
cd dist && ../node_modules/.bin/uglifyjs $(subst dist/,,$<) --compress drop_console --preamble "$$POLYFILLS_BANNER" --mangle --source-map system-polyfills.js.map >> $(subst dist/,,$@) || rm $(subst dist/,,$@)

dist/%.js: dist/%.src.js
@echo "$$BANNER" > $@
cd dist && ../node_modules/.bin/uglifyjs $(subst dist/,,$<) --compress drop_console --mangle --source-map $*.js.map >> $(subst dist/,,$@) || rm $(subst dist/,,$@)
cd dist && ../node_modules/.bin/uglifyjs $(subst dist/,,$<) --compress drop_console --preamble "$$BANNER" --mangle --source-map $*.js.map >> $(subst dist/,,$@) || rm $(subst dist/,,$@)

dist/system.src.js: lib/*.js
( echo "$$BANNER"; \
Expand Down

0 comments on commit 857c0ef

Please sign in to comment.