Skip to content

Commit

Permalink
More experiments to fix gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
TomNUSDS committed Mar 4, 2024
1 parent 753d298 commit 49d9454
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function App() {
<Fragment>
<BrowserRouter>
<Routes>
<Route path="/" element={<Layout/>} errorElement={<ErrorElement/>}>
<Route path="/" element={<Layout/>}>
<Route path="/" element={<HomePage/>}/>
<Route path="/about" element={<AboutPage/>}/>
<Route path="/blogedit" element={<BlogEditorPage/>}/>
Expand Down
18 changes: 9 additions & 9 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 49d9454

Please sign in to comment.