This commit is contained in:
Julian Lam
2016-07-08 10:43:28 -04:00
parent 49f0aca7f6
commit 55bcc28e0e
4 changed files with 48 additions and 9 deletions

View File

@@ -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);