rigjs 2.1.21 → 2.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/built/index.js +72 -72
- package/lib/publish/index.ts +8 -28
- package/package.json +1 -1
package/lib/publish/index.ts
CHANGED
|
@@ -94,15 +94,6 @@ export default async (cmd: any) => {
|
|
|
94
94
|
}
|
|
95
95
|
for (const domain of endpoint.domains) {
|
|
96
96
|
if (cicd.web_type === 'mpa') {
|
|
97
|
-
//mpa匹配文件
|
|
98
|
-
setRewriteUriPromises.push(
|
|
99
|
-
setRewriteUri(
|
|
100
|
-
domain,
|
|
101
|
-
'^\\/([^?]*\\.[a-zA-Z0-9]+)($|\\?)',
|
|
102
|
-
`/${endpoint.deployDir.replace(/\\/g, '/')}/$1`,
|
|
103
|
-
cdn
|
|
104
|
-
)
|
|
105
|
-
);
|
|
106
97
|
//mpa匹配非首页
|
|
107
98
|
setRewriteUriPromises.push(
|
|
108
99
|
setRewriteUri(
|
|
@@ -122,26 +113,15 @@ export default async (cmd: any) => {
|
|
|
122
113
|
cdn
|
|
123
114
|
)
|
|
124
115
|
);
|
|
125
|
-
//spa/history匹配文件
|
|
126
|
-
setRewriteUriPromises.push(
|
|
127
|
-
setRewriteUri(
|
|
128
|
-
domain,
|
|
129
|
-
'^\\/([^?]*\\.[a-zA-Z0-9]+)($|\\?)',
|
|
130
|
-
`/${endpoint.deployDir.replace(/\\/g, '/')}/$1`,
|
|
131
|
-
cdn
|
|
132
|
-
)
|
|
133
|
-
);
|
|
134
|
-
}else if (cicd.web_type === 'hash') {
|
|
135
|
-
//hash模式匹配文件
|
|
136
|
-
setRewriteUriPromises.push(
|
|
137
|
-
setRewriteUri(
|
|
138
|
-
domain,
|
|
139
|
-
'^\\/([^?]*\\.[a-zA-Z0-9]+)($|\\?)',
|
|
140
|
-
`/$1`,
|
|
141
|
-
cdn
|
|
142
|
-
)
|
|
143
|
-
);
|
|
144
116
|
}
|
|
117
|
+
setRewriteUriPromises.push(
|
|
118
|
+
setRewriteUri(
|
|
119
|
+
domain,
|
|
120
|
+
'^\\/([^?]*\\.[a-zA-Z0-9]+)($|\\?)',
|
|
121
|
+
`/${endpoint.deployDir.replace(/\\/g, '/')}/$1`,
|
|
122
|
+
cdn
|
|
123
|
+
)
|
|
124
|
+
);
|
|
145
125
|
//首页匹配正则,hash,history,mpa三个模式通用
|
|
146
126
|
setRewriteUriPromises.push(
|
|
147
127
|
setRewriteUri(
|
package/package.json
CHANGED