rigjs 2.1.16 → 2.1.17

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.
@@ -92,27 +92,30 @@ export default async (cmd: any) => {
92
92
  }
93
93
  for (const domain of endpoint.domains) {
94
94
  if (cicd.web_type === 'mpa') {
95
+ //文件
95
96
  setRewriteUriPromises.push(
96
97
  setRewriteUri(
97
98
  domain,
98
- '^\\/([\\w-/%]*\\.[a-zA-Z0-9]+)($|\\?)',
99
+ '^\\/([^?]*\\.[a-zA-Z0-9]+)($|\\?)',
99
100
  `/${endpoint.deployDir.replace(/\\/g, '/')}/$1`,
100
101
  cdn
101
102
  )
102
103
  );
104
+ //非首页
103
105
  setRewriteUriPromises.push(
104
106
  setRewriteUri(
105
107
  domain,
106
- '^\\/([\\w-/]*\\w+)([/?#]*)',
108
+ '^\\/([\\w-/]*\\w+)(?![^?]*\\.\\w+)',
107
109
  `/${endpoint.deployDir.replace(/\\/g, '/')}/$1.html`,
108
110
  cdn
109
111
  )
110
112
  );
111
113
  } else {
114
+ //文件
112
115
  setRewriteUriPromises.push(
113
116
  setRewriteUri(
114
117
  domain,
115
- '^\\/([\\w-/%]*\\.[a-zA-Z0-9]+)($|\\?)',
118
+ '^\\/([^?]*\\.[a-zA-Z0-9]+)($|\\?)',
116
119
  `/$1`,
117
120
  cdn
118
121
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rigjs",
3
- "version": "2.1.16",
3
+ "version": "2.1.17",
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",