UNPKG

371 BJavaScriptView Raw
1const { path } = require('@vuepress/shared-utils')
2
3/**
4 * @type {import('@vuepress/types').Plugin}
5 */
6module.exports = (options = {}, context) => ({
7 define () {
8 const { siteConfig = {}} = context
9 const ga = options.ga || siteConfig.ga
10 const GA_ID = ga || false
11 return { GA_ID }
12 },
13
14 enhanceAppFiles: path.resolve(__dirname, 'enhanceAppFile.js')
15})