mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-31 10:37:12 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			601 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			601 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import {
 | |
|   CustomWebpackBrowserSchema,
 | |
|   TargetOptions,
 | |
| } from '@angular-builders/custom-webpack'
 | |
| import * as webpack from 'webpack'
 | |
| const { codecovWebpackPlugin } = require('@codecov/webpack-plugin')
 | |
| 
 | |
| export default (
 | |
|   config: webpack.Configuration,
 | |
|   options: CustomWebpackBrowserSchema,
 | |
|   targetOptions: TargetOptions
 | |
| ) => {
 | |
|   if (config.plugins) {
 | |
|     config.plugins.push(
 | |
|       codecovWebpackPlugin({
 | |
|         enableBundleAnalysis: process.env.CODECOV_TOKEN !== undefined,
 | |
|         bundleName: 'paperless-ngx',
 | |
|         uploadToken: process.env.CODECOV_TOKEN,
 | |
|       })
 | |
|     )
 | |
|   }
 | |
| 
 | |
|   return config
 | |
| }
 |