Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qianlong66
uni-app
提交
a43698c4
U
uni-app
项目概览
qianlong66
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a43698c4
编写于
8月 03, 2021
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
wip(app): nvue
上级
d576ddcb
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
10 addition
and
19 deletion
+10
-19
packages/uni-cli-nvue/dist/plugin.js
packages/uni-cli-nvue/dist/plugin.js
+4
-8
packages/uni-cli-nvue/src/plugin.ts
packages/uni-cli-nvue/src/plugin.ts
+4
-7
packages/uni-cli-nvue/src/webpack/index.ts
packages/uni-cli-nvue/src/webpack/index.ts
+0
-2
packages/uni-cli-shared/src/hbx/log.ts
packages/uni-cli-shared/src/hbx/log.ts
+1
-1
packages/uni-cli-shared/src/logs/format.ts
packages/uni-cli-shared/src/logs/format.ts
+1
-1
未找到文件。
packages/uni-cli-nvue/dist/plugin.js
浏览文件 @
a43698c4
...
...
@@ -19,13 +19,11 @@ const UniAppNVuePlugin = () => {
}
pagesJsonPath
=
uni_cli_shared_1
.
normalizePath
(
path_1
.
default
.
resolve
(
process
.
env
.
UNI_INPUT_DIR
,
'
pages.json
'
));
if
(
process
.
env
.
NODE_ENV
===
'
production
'
)
{
webpack_1
.
runWebpackBuild
();
}
else
{
webpack_1
.
runWebpackDev
().
then
((
compiler
)
=>
{
watching
=
compiler
.
watching
;
});
return
webpack_1
.
runWebpackBuild
().
then
(()
=>
{
});
}
return
webpack_1
.
runWebpackDev
().
then
((
compiler
)
=>
{
watching
=
compiler
.
watching
;
});
},
configResolved
()
{
if
(
process
.
env
.
UNI_NVUE_COMPILER
===
'
vue
'
)
{
...
...
@@ -53,10 +51,8 @@ const UniAppNVuePlugin = () => {
return
;
}
const
curNVueEntry
=
JSON
.
stringify
(
Object
.
keys
(
entry
));
console
.
log
(
'
watchChange
'
,
lastNVueEntry
,
curNVueEntry
);
if
(
curNVueEntry
!==
lastNVueEntry
)
{
lastNVueEntry
=
curNVueEntry
;
console
.
log
(
'
invalidate
'
);
watching
.
invalidate
();
}
},
...
...
packages/uni-cli-nvue/src/plugin.ts
浏览文件 @
a43698c4
...
...
@@ -18,12 +18,11 @@ const UniAppNVuePlugin = (): UniVitePlugin => {
path
.
resolve
(
process
.
env
.
UNI_INPUT_DIR
,
'
pages.json
'
)
)
if
(
process
.
env
.
NODE_ENV
===
'
production
'
)
{
runWebpackBuild
()
}
else
{
runWebpackDev
().
then
((
compiler
)
=>
{
watching
=
compiler
.
watching
})
return
runWebpackBuild
().
then
(()
=>
{})
}
return
runWebpackDev
().
then
((
compiler
)
=>
{
watching
=
compiler
.
watching
})
},
configResolved
()
{
if
(
process
.
env
.
UNI_NVUE_COMPILER
===
'
vue
'
)
{
...
...
@@ -52,10 +51,8 @@ const UniAppNVuePlugin = (): UniVitePlugin => {
return
}
const
curNVueEntry
=
JSON
.
stringify
(
Object
.
keys
(
entry
))
console
.
log
(
'
watchChange
'
,
lastNVueEntry
,
curNVueEntry
)
if
(
curNVueEntry
!==
lastNVueEntry
)
{
lastNVueEntry
=
curNVueEntry
console
.
log
(
'
invalidate
'
)
watching
.
invalidate
()
}
},
...
...
packages/uni-cli-nvue/src/webpack/index.ts
浏览文件 @
a43698c4
...
...
@@ -16,11 +16,9 @@ function runWebpack(
if
(
err
)
{
return
reject
(
err
.
stack
||
err
)
}
if
(
stats
!
.
hasErrors
())
{
return
reject
(
stats
!
.
toString
())
}
if
(
stats
!
.
hasWarnings
())
{
const
info
=
stats
!
.
toJson
({
all
:
false
,
warnings
:
true
})
console
.
warn
(
info
.
warnings
)
...
...
packages/uni-cli-shared/src/hbx/log.ts
浏览文件 @
a43698c4
...
...
@@ -12,7 +12,7 @@ export const h5ServeFormatter: Formatter = {
const
REMOVED_MSGS
=
[
'
build started...
'
,
(
msg
:
string
)
=>
{
return
msg
.
startsWith
(
'
built in
'
)
return
/built in
[
0-9
]
+ms
\.
/
.
test
(
msg
)
},
'
watching for file changes...
'
,
]
...
...
packages/uni-cli-shared/src/logs/format.ts
浏览文件 @
a43698c4
...
...
@@ -27,8 +27,8 @@ const initInfoFormattersOnce = once(() => {
)
{
infoFormatters
.
push
(
h5ServeFormatter
)
}
infoFormatters
.
push
(
removeInfoFormatter
)
}
infoFormatters
.
push
(
removeInfoFormatter
)
})
export
function
formatErrMsg
(
msg
:
string
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录