mirror of
				https://github.com/ZetaKebab/kesper.git
				synced 2025-11-04 08:09:49 +00:00 
			
		
		
		
	🎨 Optimized gulp zip file generation (#403)
no issue - Optimised the `gulp zip` task, so the zip file doesn't include the `assets/css` (`built` folder is used for CSS) and the `dist` folder (is used to output the zip file)
This commit is contained in:
		
				
					committed by
					
						
						Aileen Nowak
					
				
			
			
				
	
			
			
			
						parent
						
							461639886e
						
					
				
				
					commit
					9597a28320
				
			@@ -56,7 +56,12 @@ gulp.task('zip', ['css'], function() {
 | 
			
		||||
    var themeName = require('./package.json').name;
 | 
			
		||||
    var filename = themeName + '.zip';
 | 
			
		||||
 | 
			
		||||
    return gulp.src(['**', '!node_modules', '!node_modules/**'])
 | 
			
		||||
    return gulp.src([
 | 
			
		||||
        '**',
 | 
			
		||||
        '!node_modules', '!node_modules/**',
 | 
			
		||||
        '!dist', '!dist/**',
 | 
			
		||||
        '!assets/css', '!assets/css/**',
 | 
			
		||||
    ])
 | 
			
		||||
        .pipe(zip(filename))
 | 
			
		||||
        .pipe(gulp.dest(targetDir));
 | 
			
		||||
});
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user