From bfa0a1f813f044457684c8776ea15196b1f46e79 Mon Sep 17 00:00:00 2001 From: James Tansiri Date: Tue, 17 Dec 2024 08:11:46 +0700 Subject: [PATCH] build: update deployment command to remove unused files --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 608ae06..4f2f1db 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "tw:watch": "tailwindcss -i public/css/tailwind.input.css -o public/css/tailwind.css --watch", "debugstart": "DEBUG=Eleventy* npx @11ty/eleventy --serve --quiet", "benchmark": "DEBUG=Eleventy:Benchmark* npx @11ty/eleventy", - "s3:sync": "aws s3 sync _site/ s3://pythonexpert-web/static", + "s3:sync": "aws s3 sync _site/ s3://pythonexpert-web/static --delete", "cloudfront:clearCache": "aws cloudfront create-invalidation --distribution-id E1WZICBZJ43601 --path \"/*\"", "deploy": "rm -rf _site && npm run build && npm run s3:sync && npm run cloudfront:clearCache" }, @@ -44,4 +44,4 @@ "tailwind-highlightjs": "^2.0.1", "typed.js": "^2.1.0" } -} \ No newline at end of file +}