From d57e1e4238b09ea2a00a7c456c67c1ca5b57301f Mon Sep 17 00:00:00 2001 From: Tony CABAYE Date: Tue, 7 Jan 2025 16:09:27 +0100 Subject: [PATCH] fix: github pages build base path --- examples/package.json | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/package.json b/examples/package.json index 49bfe26..7c99887 100644 --- a/examples/package.json +++ b/examples/package.json @@ -8,6 +8,7 @@ "dev": "vite", "prebuild": "react-dsfr update-icons", "build": "tsc -b && vite build", + "build:pages": "tsc -b && vite build --base=/react-dsfr-tiptap/", "preview": "vite preview", "check-types": "tsc --noEmit" }, diff --git a/package.json b/package.json index d5a3730..ef3cbe1 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ ], "scripts": { "build": "npm run build -w packages/react-dsfr-tiptap", - "build:examples": "npm run build --w examples", + "build:examples": "npm run build:pages --w examples", "test": "npm run test -w packages/react-dsfr-tiptap", "examples": "npm run dev -w examples", "prepare": "husky",