From 3a695ce8653bb2002bc8413913a012679447311f Mon Sep 17 00:00:00 2001 From: Samuel Philipp Date: Mon, 1 Apr 2024 15:45:58 +0200 Subject: [PATCH] fixed live index --- package.json | 6 ++++-- src/index.html | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) delete mode 120000 src/index.html diff --git a/package.json b/package.json index afd9420..3b85be3 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,10 @@ "description": "website for sp-codes.de", "scripts": { "minify-css": "uncss -n -H dist/ -o dist/css/main-*.css dist/**/*.html dist/**/**/*.html dist/**/**/**/*.html dist/**/**/**/**/*.html dist/**/**/**/**/**/*.html", + "add-index": "cpx dist/de/index.html dist/ && replace-in-file sp-codes.de/de/ sp-codes.de/ dist/index.html", "start": "eleventy --serve --watch", - "build": "eleventy && npm run minify-css", - "build:dev": "BUILD=dev eleventy && npm run minify-css" + "build": "eleventy && npm run minify-css && npm run add-index", + "build:dev": "BUILD=dev eleventy && npm run minify-css && npm run add-index" }, "author": "samuel-p", "repository": { @@ -29,6 +30,7 @@ "glob": "^10.3.12", "minify": "^11.1.1", "postcss": "^8.4.38", + "replace-in-file": "^7.1.0", "sass": "^1.72.0", "uncss": "^0.17.3" }, diff --git a/src/index.html b/src/index.html deleted file mode 120000 index 0a424f8..0000000 --- a/src/index.html +++ /dev/null @@ -1 +0,0 @@ -de/index.html \ No newline at end of file