Skip to content

Commit 090ce31

Browse files
build: fix build for amplitude-segment-snippet.min.js (#462)
1 parent 22542b3 commit 090ce31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ $(SNIPPET_OUT): $(SRC) $(SNIPPET)
7777
@$(MINIFY) $(SNIPPET) -m -b max-line-len=80,beautify=false | awk 'NF' > $(SNIPPET_OUT)
7878

7979
$(SEGMENT_SNIPPET_OUT): $(SRC) $(SNIPPET)
80-
@grep -Ev "\ba?s\b" $(SNIPPET) | $(MINIFY) -m -b max-line-len=80,beautify=false - \
80+
@sed -n '/createElement/,/insertBefore/!p' $(SNIPPET) | $(MINIFY) -m -b max-line-len=80,beautify=false - \
8181
| awk 'NF' > $(SEGMENT_SNIPPET_OUT)
8282

8383
#

0 commit comments

Comments
 (0)