mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-04 03:27:12 -05: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
 | 
						|
}
 |