mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	closes #5891
This commit is contained in:
		| @@ -118,6 +118,20 @@ function getBundleMetadata(target, callback) { | ||||
| 						}, | ||||
| 					], cb); | ||||
| 				}, | ||||
| 				acpLess: function (cb) { | ||||
| 					if (target === 'client') { | ||||
| 						return cb(null, ''); | ||||
| 					} | ||||
|  | ||||
| 					async.waterfall([ | ||||
| 						function (next) { | ||||
| 							filterMissingFiles(plugins.acpLessFiles, next); | ||||
| 						}, | ||||
| 						function (acpLessFiles, next) { | ||||
| 							getImports(acpLessFiles, '\n@import ".', '.less', next); | ||||
| 						}, | ||||
| 					], cb); | ||||
| 				}, | ||||
| 				css: function (cb) { | ||||
| 					async.waterfall([ | ||||
| 						function (next) { | ||||
| @@ -133,8 +147,9 @@ function getBundleMetadata(target, callback) { | ||||
| 		function (result, next) { | ||||
| 			var cssImports = result.css; | ||||
| 			var lessImports = result.less; | ||||
| 			var acpLessImports = result.acpLess; | ||||
|  | ||||
| 			var imports = cssImports + '\n' + lessImports; | ||||
| 			var imports = cssImports + '\n' + lessImports + '\n' + acpLessImports; | ||||
| 			imports = buildImports[target](imports); | ||||
|  | ||||
| 			next(null, { paths: paths, imports: imports }); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user