From e9990ae9f74cebd470ca73360e32a406d2e4c9b9 Mon Sep 17 00:00:00 2001 From: Niek van der Maas Date: Fri, 3 Mar 2023 10:58:07 +0100 Subject: [PATCH] Added a special `build:github` script --- .github/workflows/pages.yml | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 2259b59..40719b2 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -23,7 +23,7 @@ jobs: node-version: '18' - name: Build - run: npm ci && npm run build + run: npm ci && npm run bbuild:github - name: Deploy uses: peaceiris/actions-gh-pages@v3 diff --git a/package.json b/package.json index c009a13..c05e9b7 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "type": "module", "scripts": { "dev": "vite", - "build": "vite build --base=/chatgpt-web/", + "build": "vite build", + "build:github": "vite build --base=/chatgpt-web/", "preview": "vite preview", "check": "svelte-check --tsconfig ./tsconfig.json" },