mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 10:06:13 +01:00
closes #4831
This commit is contained in:
@@ -196,7 +196,7 @@ module.exports = function(Meta) {
|
||||
Meta.css[destination] = result.css;
|
||||
|
||||
// Save the compiled CSS in public/ so things like nginx can serve it
|
||||
if (nconf.get('isPrimary') === 'true') {
|
||||
if (nconf.get('isPrimary') === 'true' && (nconf.get('local-assets') === undefined || nconf.get('local-assets') !== false)) {
|
||||
return Meta.css.commitToFile(destination, function() {
|
||||
if (typeof callback === 'function') {
|
||||
callback(null, result.css);
|
||||
|
||||
Reference in New Issue
Block a user