Skip to content

Commit

Permalink
feat: add cache plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Sep 30, 2024
1 parent 8cf1a4c commit 727193a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@vuepress/bundler-vite": "2.0.0-rc.17",
"@vuepress/bundler-webpack": "2.0.0-rc.17",
"@vuepress/plugin-append-date": "2.0.0-rc.52",
"@vuepress/plugin-cache": "2.0.0-rc.52",
"@vuepress/plugin-docsearch": "2.0.0-rc.52",
"@vuepress/plugin-feed": "2.0.0-rc.52",
"@vuepress/plugin-pwa": "2.0.0-rc.52",
Expand Down
25 changes: 25 additions & 0 deletions pnpm-lock.yaml

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

3 changes: 2 additions & 1 deletion src/.vuepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { appendDatePlugin } from "@vuepress/plugin-append-date";
import { cachePlugin } from "@vuepress/plugin-cache";
import type { UserConfig } from "vuepress";
import { defineUserConfig } from "vuepress";

Expand Down Expand Up @@ -34,7 +35,7 @@ export default <UserConfig>defineUserConfig({

theme,

plugins: [appendDatePlugin()],
plugins: [appendDatePlugin(), cachePlugin({ type: "filesystem" })],

shouldPrefetch: false,
});

0 comments on commit 727193a

Please sign in to comment.