{"id":20640866,"url":"https://github.com/zhongxuyang/vitepress-plugin-nprogress","last_synced_at":"2025-04-15T23:18:26.004Z","repository":{"id":60673580,"uuid":"544373631","full_name":"ZhongxuYang/vitepress-plugin-nprogress","owner":"ZhongxuYang","description":"nprogress plugin for vitepress","archived":false,"fork":false,"pushed_at":"2022-10-17T09:32:28.000Z","size":44,"stargazers_count":22,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T23:17:51.173Z","etag":null,"topics":["nprogress","vitepress-plugin"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZhongxuYang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-10-02T10:11:21.000Z","updated_at":"2025-03-14T09:44:10.000Z","dependencies_parsed_at":"2023-01-20T05:03:38.653Z","dependency_job_id":null,"html_url":"https://github.com/ZhongxuYang/vitepress-plugin-nprogress","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZhongxuYang%2Fvitepress-plugin-nprogress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZhongxuYang%2Fvitepress-plugin-nprogress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZhongxuYang%2Fvitepress-plugin-nprogress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZhongxuYang%2Fvitepress-plugin-nprogress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZhongxuYang","download_url":"https://codeload.github.com/ZhongxuYang/vitepress-plugin-nprogress/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249167548,"owners_count":21223528,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nprogress","vitepress-plugin"],"created_at":"2024-11-16T15:31:37.501Z","updated_at":"2025-04-15T23:18:25.986Z","avatar_url":"https://github.com/ZhongxuYang.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vitepress-plugin-nprogress\n\n\u003e Nprogress plugin for Vitepress\n\n\u003c!-- \u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/ZhongxuYang/vitepress-plugin-nprogress\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n    \u003cimg width=\"180\" src=\"./public/ic_analytics.svg\" alt=\"vitepress-plugin-nprogress logo\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e --\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/dm/vitepress-plugin-nprogress.svg\" alt=\"Downloads\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/vitepress-plugin-nprogress\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/vitepress-plugin-nprogress.svg\" alt=\"Version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/vuejs/vitepress-plugin-nprogress/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/vitepress-plugin-nprogress.svg\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Install\n```sh\nyarn add -D vitepress-plugin-nprogress\n# OR npm install -D vitepress-plugin-nprogress\n```\n\n## Usage\n```ts\n// .vitepress/theme/index.ts\n\nimport DefaultTheme from \"vitepress/theme\"\n\nimport vitepressNprogress from 'vitepress-plugin-nprogress'\nimport 'vitepress-plugin-nprogress/lib/css/index.css'\n\nexport default {\n  ...DefaultTheme,\n  enhanceApp: (ctx) =\u003e {\n    vitepressNprogress(ctx)\n  }\n}\n```\n\n## Tips\nIf got `TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension \".css\" for ***/node_modules/nprogress/nprogress.css` error when you build, \n\nyou can config like this in your `vite.config.ts`:\n```ts\n// vite.config.ts\nimport {defineConfig} from 'vite'\n\nexport default defineConfig({\n  ssr: {\n    noExternal: ['vitepress-plugin-nprogress']\n  },\n})\n```\n\nThen you can use `nprogress` ! 🎉","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhongxuyang%2Fvitepress-plugin-nprogress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhongxuyang%2Fvitepress-plugin-nprogress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhongxuyang%2Fvitepress-plugin-nprogress/lists"}