mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-10 05:46:31 +10:00
13 lines
319 B
JavaScript
13 lines
319 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, 'enhanceAppFile.js')
|
|
})
|