Skip to content

Commit

Permalink
fix vite on gh pages and more
Browse files Browse the repository at this point in the history
  • Loading branch information
klendi committed Dec 22, 2024
1 parent bdd5e14 commit 496907f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ jobs:
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
publish_dir: ./example/dist
2 changes: 1 addition & 1 deletion example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions example/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";

// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
})
base: "/react-top-loading-bar/",
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"prepublishOnly": "npm run build",
"test:build": "npm run build",
"predeploy": "cd example && npm install && npm run build",
"deploy": "gh-pages -d ./example/dist"
"deploy": "gh-pages -d example/dist"
},
"peerDependencies": {
"react": "^16 || ^17 || ^18 || ^19"
Expand Down

0 comments on commit 496907f

Please sign in to comment.