Skip to content

Commit

Permalink
Fix source maps for development builds (#1772)
Browse files Browse the repository at this point in the history
Let's have Browserify generate source maps again for development
builds, they make debugging the code a lot easier. But let's keep them
off for production builds, since the background.js bundle grows from
~2 MB to ~5 MB when we add them.
  • Loading branch information
kzar authored Mar 9, 2023
1 parent 48b4025 commit dbcb0d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ ITEMS := shared/html shared/data shared/img
SASS = node_modules/.bin/sass
BROWSERIFY_BIN = node_modules/.bin/browserify
BROWSERIFY = $(BROWSERIFY_BIN) -t babelify
ifeq ($(type),dev)
BROWSERIFY += -d
endif
KARMA = node_modules/.bin/karma

###--- Variables ---###
Expand Down

0 comments on commit dbcb0d5

Please sign in to comment.