feat: Turn index.html into a template

This commit is contained in:
Alexander Polynomdivision
2018-10-03 20:48:39 +02:00
parent 082f254da0
commit 4857067481
4 changed files with 1225 additions and 7 deletions

View File

@@ -12,7 +12,7 @@ clean:
build: prod
prod: node_modules clean
@echo Building with parcel
./node_modules/.bin/parcel build --out-dir dist/app src/index.html
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
@@ -20,7 +20,7 @@ prod: node_modules clean
dev: node_modules clean
@echo Building with parcel
./node_modules/.bin/parcel build --out-dir dist/app src/index.html
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