You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/howto/vuepress.md
+19-19Lines changed: 19 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -2,28 +2,28 @@
2
2
3
3
In Vuepress the use and installation is also simple.
4
4
5
-
```javascript
6
-
// enhanceApp.js
7
-
importVueDarkModefrom'@vue-a11y/dark-mode'
8
-
9
-
exportdefault ({ Vue, isServer }) => {
10
-
if (!isServer) {
11
-
Vue.use(VueDarkMode)
12
-
}
13
-
}
14
-
```
15
-
16
5
::: warning
17
6
VuePress applications are rendered by the server in Node.js when generating static builds. To avoid errors, we will wrap it inside the `<ClientOnly>` component.
0 commit comments