rigjs 2.1.23 → 2.1.24

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.
@@ -115,10 +115,11 @@ export default async (cmd: any) => {
115
115
  );
116
116
  }
117
117
  //匹配文件,3个模式通用
118
+ const divide = webEntryPath === '/' ? '' : '/';
118
119
  setRewriteUriPromises.push(
119
120
  setRewriteUri(
120
121
  domain,
121
- '^\\/([^?]*\\.[a-zA-Z0-9]+)($|\\?)',
122
+ `^${webEntryPath}${divide}([^?]*\\.[a-zA-Z0-9]+)($|\\?)`,
122
123
  `/${endpoint.deployDir.replace(/\\/g, '/')}/$1`,
123
124
  cdn
124
125
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rigjs",
3
- "version": "2.1.23",
3
+ "version": "2.1.24",
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",