mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-18 17:55:52 +10:00
15 lines
321 B
JavaScript
15 lines
321 B
JavaScript
const { path } = require('@vuepress/shared-utils')
|
|
|
|
module.exports = (options = {}, context) => ({
|
|
define () {
|
|
const { siteConfig = {}} = context
|
|
const ga = options.ga || siteConfig.ga
|
|
const GA_ID = ga || false
|
|
return { GA_ID }
|
|
},
|
|
|
|
enhanceAppFiles: [
|
|
path.resolve(__dirname, 'inject.js')
|
|
]
|
|
})
|