提交 3e4616df 编写于 作者: 雪洛's avatar 雪洛

chore: 增加vite按需编译提示

上级 1f058fd5
......@@ -9,6 +9,8 @@ export default {
'Especially the sourcemap of app-nvue has a greater impact',
'dev.performance.mp':
'To officially release, please click the release menu or use the cli release command to release',
'dev.performance.web':
'\nVite is compiled on demand, and clicking on an uncompiled page at runtime will compile first and then load, resulting in a slower display, and there is no such problem after release.',
'build.done': 'DONE Build complete.',
'dev.watching.start': 'Compiling...',
'dev.watching.end': 'DONE Build complete. Watching for changes...',
......
......@@ -8,6 +8,8 @@ export default {
'dev.performance.nvue': '尤其是 app-nvue 的 sourcemap 影响较大',
'dev.performance.mp':
'若要正式发布,请点击发行菜单或使用 cli 发布命令进行发布',
'dev.performance.web':
'\nvite是按需编译,运行时点击某个未编译页面会先编译后加载,导致显示较慢,发行后无此问题。',
'build.done': 'DONE Build complete.',
'dev.watching.start': '开始差量编译...',
'dev.watching.end': 'DONE Build complete. Watching for changes...',
......
......@@ -166,6 +166,9 @@ export function initEnv(
M['dev.performance'] +
(process.env.UNI_PLATFORM.startsWith('mp-')
? M['dev.performance.mp']
: '') +
(process.env.UNI_PLATFORM === 'web' || process.env.UNI_PLATFORM === 'h5'
? M['dev.performance.web']
: '')
)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册