Skip to content

How to import vitepress settings ? #1392

Closed Answered by brc-dd
Zogsha asked this question in Q&A
Discussion options

You must be logged in to vote

Something like this should work fine for you:

// some/script.ts
import { type SiteConfig } from 'vitepress'

export const buildEnd = ({ outDir } : SiteConfig) => {
  // ...
}
// .vitepress/config.ts
import { buildEnd } from 'path/to/some/script.js'

export default {
  // ...
  buildEnd 
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Zogsha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants