Skip to content

Commit

Permalink
chore(sass): building sass for development
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Nov 8, 2018
1 parent ae0d82f commit e7cd9b5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/helpers/viewdata/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ viewdata.users = {};

viewController.getData = function(request, cb) {
async.parallel([
function(callback) {
if (global.env === 'development')
require('../../sass/buildsass').build(callback);
else
return callback();

},
function(callback) {
settingSchema.getSetting('gen:sitetitle', function(err, setting) {
if (!err && setting && setting.value)
Expand Down

0 comments on commit e7cd9b5

Please sign in to comment.