rigjs 2.1.25 → 2.1.26

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.
@@ -165,14 +165,25 @@ export default async (cmd: any) => {
165
165
  }
166
166
 
167
167
  for (const domain of endpoint.domains) {
168
- setRewriteUriPromises.push(
169
- setRewriteUri(
170
- domain,
171
- '^\\/([^?]*\\.[a-zA-Z0-9]+)($|\\?)',
172
- `/${endpoint.deployDir.replace(/\\/g, '/')}/$1`,
173
- cdn
174
- )
175
- );
168
+ if (cicd.web_type !== 'hash'){
169
+ setRewriteUriPromises.push(
170
+ setRewriteUri(
171
+ domain,
172
+ '^\\/([^?]*\\.[a-zA-Z0-9]+)($|\\?)',
173
+ `/${endpoint.deployDir.replace(/\\/g, '/')}/$1`,
174
+ cdn
175
+ )
176
+ );
177
+ }else{
178
+ setRewriteUriPromises.push(
179
+ setRewriteUri(
180
+ domain,
181
+ '^\\/([^?]*\\.[a-zA-Z0-9]+)($|\\?)',
182
+ `/$1`,
183
+ cdn
184
+ )
185
+ );
186
+ }
176
187
  setRewriteUriPromises.push(
177
188
  setRewriteUri(
178
189
  domain,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rigjs",
3
- "version": "2.1.25",
3
+ "version": "2.1.26",
4
4
  "description": "A multi-repos dev tool based on yarn and git.Rig is inspired by cocoapods. Not like those monorepo solutions,rig is a tool for organizing multi-repos.",
5
5
  "keywords": [
6
6
  "modular",