From 00b6cc1e3e3f2bd210032dec5391104d022e4811 Mon Sep 17 00:00:00 2001 From: Kevin Pagtakhan Date: Wed, 1 Dec 2021 18:58:39 -0800 Subject: [PATCH] build: fix build for amplitude-segment-snippet.min.js --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0a3141ba..3da6a368 100644 --- a/Makefile +++ b/Makefile @@ -77,7 +77,7 @@ $(SNIPPET_OUT): $(SRC) $(SNIPPET) @$(MINIFY) $(SNIPPET) -m -b max-line-len=80,beautify=false | awk 'NF' > $(SNIPPET_OUT) $(SEGMENT_SNIPPET_OUT): $(SRC) $(SNIPPET) - @grep -Ev "\ba?s\b" $(SNIPPET) | $(MINIFY) -m -b max-line-len=80,beautify=false - \ + @sed -n '/createElement/,/insertBefore/!p' $(SNIPPET) | $(MINIFY) -m -b max-line-len=80,beautify=false - \ | awk 'NF' > $(SEGMENT_SNIPPET_OUT) #