Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
梦里逆天
uni-app
提交
047c6211
U
uni-app
项目概览
梦里逆天
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
22
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
047c6211
编写于
7月 09, 2020
作者:
d-u-a
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 纯 nvue 项目配置混淆后打包编译出错的问题
上级
94d0c2e2
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
12 addition
and
8 deletion
+12
-8
packages/webpack-uni-pages-loader/lib/platforms/app-plus/index.js
.../webpack-uni-pages-loader/lib/platforms/app-plus/index.js
+12
-8
未找到文件。
packages/webpack-uni-pages-loader/lib/platforms/app-plus/index.js
浏览文件 @
047c6211
...
...
@@ -179,8 +179,8 @@ module.exports = function (pagesJson, userManifestJson) {
if
(
!
manifestJson
.
permissions
)
{
manifestJson
.
permissions
=
{}
}
const
nvuePages
=
p
agesJson
.
nvue
&&
pagesJson
.
nvue
.
pages
const
nvuePages
=
p
rocess
.
env
.
UNI_USING_V3_NATIVE
?
pagesJson
.
pages
:
(
pagesJson
.
nvue
&&
pagesJson
.
nvue
.
pages
)
if
(
nvuePages
&&
nvuePages
.
length
)
{
const
pages
=
{}
...
...
@@ -197,10 +197,13 @@ module.exports = function (pagesJson, userManifestJson) {
appJson
.
nvue
=
{
pages
}
if
(
process
.
env
.
UNI_USING_V3_NATIVE
)
{
appJson
.
nvue
.
entryPagePath
=
nvuePages
[
0
]
}
else
if
(
pagesJson
.
nvue
.
entryPagePath
)
{
appJson
.
nvue
.
entryPagePath
=
pagesJson
.
nvue
.
entryPagePath
}
if
(
pagesJson
.
nvue
.
entryPagePath
)
{
appJson
.
nvue
.
entryPagePath
=
pagesJson
.
nvue
.
entryPagePath
}
// nvue 权限
manifestJson
.
permissions
.
UniNView
=
{
description
:
'
UniNView原生渲染
'
...
...
@@ -344,9 +347,10 @@ module.exports = function (pagesJson, userManifestJson) {
resources
[
key
.
replace
(
/
\.
nvue$/
,
'
.js
'
)]
=
confusion
.
resources
[
key
]
}
if
(
!
Object
.
keys
(
nvuePages
).
find
(
path
=>
{
const
subNVues
=
nvuePages
[
path
].
window
.
subNVues
||
[]
return
path
.
replace
(
/
\.
html$/
,
'
.nvue
'
)
===
key
||
subNVues
.
find
(({
path
const
subNVues
=
nvuePages
[
path
].
window
.
subNVues
||
[]
// TODO
return
(
path
.
replace
(
/
\.
html$/
,
'
.nvue
'
)
===
key
||
path
.
replace
(
/
\.
html$/
,
'
.nvue
'
)
+
'
.nvue
'
===
key
)
||
subNVues
.
find
(({
path
})
=>
path
===
key
.
replace
(
/
\.
nvue$/
,
''
))
})
&&
!
pagesJson
.
pages
.
find
(({
style
=
{}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录