mirror of
				https://github.com/NativeScript/NativeScript.git
				synced 2025-11-04 21:06:45 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			310 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			310 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
const webpack = require("@nativescript/webpack");
 | 
						|
 | 
						|
module.exports = (env) => {
 | 
						|
	webpack.init(env);
 | 
						|
 | 
						|
	webpack.chainWebpack(config => {
 | 
						|
		config.plugin('DefinePlugin').tap(args => {
 | 
						|
			Object.assign(args[0], {
 | 
						|
				__CI__: !!process.env.CI,
 | 
						|
			})
 | 
						|
 | 
						|
			return args
 | 
						|
		  })
 | 
						|
	})
 | 
						|
 | 
						|
	return webpack.resolveConfig();
 | 
						|
};
 | 
						|
 | 
						|
 |