fixed live index

This commit is contained in:
Samuel Philipp 2024-04-01 15:45:58 +02:00
parent 2afb45db6e
commit 3a695ce865
2 changed files with 4 additions and 3 deletions

View file

@ -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"
},

View file

@ -1 +0,0 @@
de/index.html