From 49d9454e1111ee2e93d16087061ed3505fe4bd2c Mon Sep 17 00:00:00 2001 From: TomNUSDS <74203452+TomNUSDS@users.noreply.github.com> Date: Mon, 4 Mar 2024 15:22:01 -0800 Subject: [PATCH] More experiments to fix gh-pages --- package.json | 1 + src/App.tsx | 2 +- vite.config.ts | 18 +++++++++--------- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 1cfb3b6..e03055a 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "license": "MIT", "version": "0.0.1", "type": "module", + "homepage": "usds.github.io/website-content-editor", "scripts": { "dev": "vite", "build": "tsc && vite build", diff --git a/src/App.tsx b/src/App.tsx index 4ecbb2c..ed85329 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -50,7 +50,7 @@ function App() { - } errorElement={}> + }> }/> }/> }/> diff --git a/vite.config.ts b/vite.config.ts index 0399a15..7368e85 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -7,15 +7,15 @@ export default defineConfig({ base: "./", build: { outDir: "./dist", - // rollupOptions: { - // output: { - // manualChunks(id) { - // if (id.includes("node_modules")) { - // return "vendor"; - // } - // }, - // }, - // }, + rollupOptions: { + output: { + manualChunks(id) { + if (id.includes("node_modules")) { + return "vendor"; + } + }, + }, + }, }, plugins: [ react(),