feat: configuration alias
This commit is contained in:
		
							parent
							
								
									7af91abc3d
								
							
						
					
					
						commit
						3f8e4c7757
					
				| 
						 | 
					@ -30,6 +30,12 @@ export default defineConfig({
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 | 
					  resolve: {
 | 
				
			||||||
 | 
					    alias: {
 | 
				
			||||||
 | 
					      '@': join(__dirname, '../src/renderer/src'),
 | 
				
			||||||
 | 
					      'src': join(__dirname, '../src'),
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
  server: {
 | 
					  server: {
 | 
				
			||||||
    host: pkg.env.HOST,
 | 
					    host: pkg.env.HOST,
 | 
				
			||||||
    port: pkg.env.PORT,
 | 
					    port: pkg.env.PORT,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,10 +1,10 @@
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  "$schema": "https://json.schemastore.org/tsconfig",
 | 
					  "$schema": "https://json.schemastore.org/tsconfig",
 | 
				
			||||||
  "compilerOptions": {
 | 
					  "compilerOptions": {
 | 
				
			||||||
    "baseUrl": ".",
 | 
					    "baseUrl": "./",
 | 
				
			||||||
    "paths": {
 | 
					    "paths": {
 | 
				
			||||||
      "root/*": ["./*"],
 | 
					      "@/*": ["src/renderer/src/*"],
 | 
				
			||||||
      "@/*": ["src/renderer/*"]
 | 
					      "src/*": ["src/*"]
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Loading…
	
		Reference in New Issue