From 6b577273b0ff3807167e34e81b5bf26b588c2d58 Mon Sep 17 00:00:00 2001 From: Alexander Polynomdivision Date: Thu, 11 Oct 2018 17:09:55 +0200 Subject: [PATCH] build: Fix a misspelled CLI flag --- frontend/Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/frontend/Makefile b/frontend/Makefile index 45b2345..349b614 100644 --- a/frontend/Makefile +++ b/frontend/Makefile @@ -13,9 +13,8 @@ clean: build: prod prod: node_modules clean @echo Building with parcel - NODE_DEV=production ./node_modules/.bin/parcel build --out-dir dist/app src/index.hbs - ./node_modules/.bin/parcel build --out-dir dist src/lost.html src/error.html - sed -e "s/\/src/\/app\/src/g" --in-place dist/app/index.html + NODE_DEV=production ./node_modules/.bin/parcel build --out-dir dist/app --public-url /app/ src/index.hbs + NODE_ENV=production ./node_modules/.bin/parcel build --out-dir dist src/lost.html src/error.html @echo Generate checksums find ./dist/ -exec sha512sum {} + | awk -F \. '{ if($$4 != "map") print $$0}' | awk -F \/ '{ if($$3 == "lost.html") {} else if ($$3 == "error.html") {} else print $$0}' > sha512sums @@ -25,9 +24,8 @@ prod: node_modules clean dev: node_modules clean @echo Building with parcel - NODE_ENV=development ./node_modules/.bin/parcel build --out-dir dist/app src/index.hbs - ./node_modules/.bin/parcel build --out-dir dist src/lost.html src/error.html - sed -e "s/\/src/\/app\/src/g" --in-place dist/app/index.html + NODE_ENV=development ./node_modules/.bin/parcel build --out-dir dist/app --public-url /app/ src/index.hbs + NODE_ENV=development ./node_modules/.bin/parcel build --out-dir dist src/lost.html src/error.html chmod 604 -R dist/app/* chmod 604 dist/error.html dist/lost.html