Last active
September 20, 2019 09:06
-
-
Save asaf/2f022d37eab7929908fea43b86572fa0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: clean | |
clean: | |
rm -rf builds | |
ENTRYPOINTS := admin portal | |
EP = $(word 1, $@) | |
.PHONY: $(ENTRYPOINTS) | |
$(ENTRYPOINTS): | |
mkdir -p builds | |
sed -i '' -e 's/\("homepage": \)\(.*\)/\1"\/${EP}",/' package.json | |
cp src/${EP}.js src/index.js | |
yarn build | |
mv build builds/${EP} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to use create-react-app for multiple endpoints without ejecting.