产品库工程目录调整
This commit is contained in:
		
							
								
								
									
										15
									
								
								bin/serve.js
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								bin/serve.js
									
									
									
									
									
								
							| @@ -58,15 +58,22 @@ const start = () => { | ||||
|     easycom: { | ||||
|       "^u-(.*)": "@/uview/components/u-$1/u-$1.vue" | ||||
|     }, | ||||
|     pages: [], | ||||
|     pages: [ | ||||
|       {path: 'pages/loading'}, | ||||
|       {path: 'pages/login'} | ||||
|     ], | ||||
|     globalStyle: { | ||||
|       pageOrientation: "auto", | ||||
|       navigationStyle: "custom" | ||||
|     } | ||||
|   } | ||||
|   findApp('src/pages', file => { | ||||
|     if (/.*\\(.+)\.vue/g.test(file)) { | ||||
|       json.pages.push({path: file.replace(/^src\\(.*).vue/g, '$1').replace(/\\/g,'/')}) | ||||
|   findApp('src/apps', file => { | ||||
|     if (/.*\\.+\\App[^\\]+\.vue/g.test(file)) { | ||||
|       let app = { | ||||
|         name: file.replace(/.*\\([^\\]+).vue/g, '$1'), | ||||
|         path: file.replace(/^src\\(.*).vue/g, '$1').replace(/\\/g, '/') | ||||
|       } | ||||
|       json.pages.push(app) | ||||
|     } | ||||
|   }).then(() => { | ||||
|     fsExtra.outputJson('src/pages.json', json, () => { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user