mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-31 10:37:12 -04:00 
			
		
		
		
	Merge pull request #2334 from paperless-ngx/fix-2333
Documentation: update build instructions to remove deprecated `--prod`
This commit is contained in:
		
						commit
						cfe9528884
					
				| @ -248,7 +248,7 @@ Testing and code style: | |||||||
| In order to build the front end and serve it as part of django, execute | In order to build the front end and serve it as part of django, execute | ||||||
| 
 | 
 | ||||||
| ```shell-session | ```shell-session | ||||||
| $ ng build --prod | $ ng build --configuration production | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| This will build the front end and put it in a location from which the | This will build the front end and put it in a location from which the | ||||||
|  | |||||||
| @ -12,7 +12,7 @@ Run `ng generate component component-name` to generate a new component. You can | |||||||
| 
 | 
 | ||||||
| ## Build | ## Build | ||||||
| 
 | 
 | ||||||
| Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build. | Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--configuration production` flag for a production build. | ||||||
| 
 | 
 | ||||||
| ## Running unit tests | ## Running unit tests | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,5 +1,5 @@ | |||||||
| // This file can be replaced during build by using the `fileReplacements` array.
 | // This file can be replaced during build by using the `fileReplacements` array.
 | ||||||
| // `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
 | // `ng build --configuration production` replaces `environment.ts` with `environment.prod.ts`.
 | ||||||
| // The list of file replacements can be found in `angular.json`.
 | // The list of file replacements can be found in `angular.json`.
 | ||||||
| 
 | 
 | ||||||
| export const environment = { | export const environment = { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user