提交 4fd18824 编写于 作者: fxy060608's avatar fxy060608

feat(nvue): add UNI_STAT_TITLE_JSON

上级 9e36931f
......@@ -10,6 +10,7 @@ export function createDefinePlugin() {
'process.env.HBX_USER_TOKEN': JSON.stringify(
process.env.HBX_USER_TOKEN || ''
),
'process.env.UNI_STAT_TITLE_JSON': process.env.UNI_STAT_TITLE_JSON,
},
initDefine()
)
......
......@@ -39,9 +39,10 @@ module.exports = [
})
}
debug('vite:uni:stat')('isEnable', isEnable)
process.env.UNI_STAT_TITLE_JSON = JSON.stringify(titlesJson)
return {
define: {
'process.env.UNI_STAT_TITLE_JSON': JSON.stringify(titlesJson),
'process.env.UNI_STAT_TITLE_JSON': process.env.UNI_STAT_TITLE_JSON,
},
}
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册