提交 57812d5c 编写于 作者: fxy060608's avatar fxy060608

fix(uts): notify change files

上级 698939d6
......@@ -74,8 +74,16 @@ class WebpackAppPlusPlugin {
...viewChangedFiles,
...nvueChangedFiles
])]
let utsChangedFiles = []
try {
utsChangedFiles = JSON.parse(process.env.UNI_APP_UTS_CHANGED_FILES || '[]')
if (utsChangedFiles.length) {
changedFiles.push(...utsChangedFiles)
}
} catch (e) {}
if (!isFirst && changedFiles.length > 0) {
if (serviceChangedFiles.length === 0 && viewChangedFiles.length === 0) {
if (serviceChangedFiles.length === 0 && viewChangedFiles.length === 0 && utsChangedFiles
.length === 0) {
// 仅 nvue 页面发生变化
done('Build complete. PAGES:' + JSON.stringify(changedFiles))
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册