File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed
Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 1+ /**
2+ * Client app enhancement file.
3+ *
4+ * https://v1.vuepress.vuejs.org/guide/basic-config.html#app-level-enhancements
5+ */
6+
7+ export default ( {
8+ Vue, // the version of Vue being used in the VuePress app
9+ options, // the options for the root Vue instance
10+ router, // the router instance for the app
11+ siteData // site metadata
12+ } ) => {
13+ // ...apply enhancements to the app
14+ try {
15+ const enhanceAppProject = require ( './enhanceApp-project.js' ) . default ;
16+ enhanceAppProject ( { router } ) ;
17+ } catch ( error ) {
18+ // If the file doesn't exist, do nothing
19+ }
20+ }
21+
22+
Original file line number Diff line number Diff line change @@ -64,7 +64,9 @@ The `.vuepress/` folder is required to config VuePress.
6464
6565* ` config-project.js `
6666 * Injects config values to ` config.js `
67+ * ` enhanceApp-project.js `
68+ * Injects custom Vue components to the VuePress app
6769* ` public/ `
6870 * Use it for public content such as pics, icons and the manifest file. A file at ` .vuepress/public/logo.svg ` will resolve to ` /logo.svg `
69- * ` styles/ `
71+ * ` styles/ `
7072 * Uses to store styling (CSS) properties.
You can’t perform that action at this time.
0 commit comments