mirror of
				https://github.com/n8n-io/n8n-nodes-starter.git
				synced 2025-10-30 23:02:25 -05:00 
			
		
		
		
	icon not being copied solved
This commit is contained in:
		
					parent
					
						
							
								fc3d0df193
							
						
					
				
			
			
				commit
				
					
						bd868dcc2b
					
				
			
		
					 3 changed files with 3355 additions and 579 deletions
				
			
		
							
								
								
									
										18
									
								
								gulpfile.js
									
										
									
									
									
								
							
							
						
						
									
										18
									
								
								gulpfile.js
									
										
									
									
									
								
							|  | @ -1,16 +1,6 @@ | |||
| const path = require('path'); | ||||
| const { task, src, dest } = require('gulp'); | ||||
| 
 | ||||
| task('build:icons', copyIcons); | ||||
| 
 | ||||
| function copyIcons() { | ||||
| 	const nodeSource = path.resolve('nodes', '**', '*.{png,svg}'); | ||||
| 	const nodeDestination = path.resolve('dist', 'nodes'); | ||||
| 
 | ||||
| 	src(nodeSource).pipe(dest(nodeDestination)); | ||||
| 
 | ||||
| 	const credSource = path.resolve('credentials', '**', '*.{png,svg}'); | ||||
| 	const credDestination = path.resolve('dist', 'credentials'); | ||||
| 
 | ||||
| 	return src(credSource).pipe(dest(credDestination)); | ||||
| } | ||||
| task('build:icons', function () { | ||||
|   return src(['nodes/**/*.png', 'nodes/**/*.svg'], { base: 'nodes' }) | ||||
|     .pipe(dest('dist/nodes')); | ||||
| }); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue