mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	think its fairly safe to say this isn't experimental anymore
worked every single time I reloaded today, and that'd be about a hundred thousand times so far
This commit is contained in:
		| @@ -108,7 +108,7 @@ module.exports = function(Meta) { | |||||||
| 		fs.exists(cachePath, function(exists) { | 		fs.exists(cachePath, function(exists) { | ||||||
| 			if (exists) { | 			if (exists) { | ||||||
| 				if (nconf.get('isPrimary') === 'true') { | 				if (nconf.get('isPrimary') === 'true') { | ||||||
| 					winston.verbose('[meta/css] (Experimental) Reading stylesheets from file'); | 					winston.verbose('[meta/css] Reading stylesheets from file'); | ||||||
| 					async.map([cachePath, acpCachePath], fs.readFile, function(err, files) { | 					async.map([cachePath, acpCachePath], fs.readFile, function(err, files) { | ||||||
| 						Meta.css.cache = files[0]; | 						Meta.css.cache = files[0]; | ||||||
| 						Meta.css.acpCache = files[1]; | 						Meta.css.acpCache = files[1]; | ||||||
| @@ -120,7 +120,7 @@ module.exports = function(Meta) { | |||||||
| 					callback(); | 					callback(); | ||||||
| 				} | 				} | ||||||
| 			} else { | 			} else { | ||||||
| 				winston.warn('[meta/css] (Experimental) No stylesheets found on disk, re-minifying'); | 				winston.warn('[meta/css] No stylesheets found on disk, re-minifying'); | ||||||
| 				Meta.css.minify.apply(Meta.css, arguments); | 				Meta.css.minify.apply(Meta.css, arguments); | ||||||
| 			} | 			} | ||||||
| 		}); | 		}); | ||||||
|   | |||||||
| @@ -213,7 +213,7 @@ module.exports = function(Meta) { | |||||||
| 		fs.exists(scriptPath, function(exists) { | 		fs.exists(scriptPath, function(exists) { | ||||||
| 			if (exists) { | 			if (exists) { | ||||||
| 				if (nconf.get('isPrimary') === 'true') { | 				if (nconf.get('isPrimary') === 'true') { | ||||||
| 					winston.verbose('[meta/js] (Experimental) Reading client-side scripts from file'); | 					winston.verbose('[meta/js] Reading client-side scripts from file'); | ||||||
| 					async.map([scriptPath, mapPath], fs.readFile, function(err, files) { | 					async.map([scriptPath, mapPath], fs.readFile, function(err, files) { | ||||||
| 						Meta.js.cache = files[0]; | 						Meta.js.cache = files[0]; | ||||||
| 						Meta.js.map = files[1]; | 						Meta.js.map = files[1]; | ||||||
| @@ -225,7 +225,7 @@ module.exports = function(Meta) { | |||||||
| 					callback(); | 					callback(); | ||||||
| 				} | 				} | ||||||
| 			} else { | 			} else { | ||||||
| 				winston.warn('[meta/js] (Experimental) No script file found on disk, re-minifying'); | 				winston.warn('[meta/js] No script file found on disk, re-minifying'); | ||||||
| 				Meta.js.minify.apply(Meta.js, arguments); | 				Meta.js.minify.apply(Meta.js, arguments); | ||||||
| 			} | 			} | ||||||
| 		}); | 		}); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user