Skip to content

Commit

Permalink
Only use the stylus tasks in the server task if stylus was included.
Browse files Browse the repository at this point in the history
Fixes #3
  • Loading branch information
bryanforbes committed Oct 28, 2013
1 parent 437ba80 commit be37e27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/templates/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ module.exports = function (grunt) {
}

grunt.task.run([
'stylus:compile',
'connect:test',
'watch:stylus'
<% if (stylus) { %>'stylus:compile',
<% } %>'connect:test<% if (!stylus) { %>:keepalive<% } %>'<% if (stylus) { %>,
'watch:stylus'<% } %>
]);
});
grunt.registerTask('build', [ <% if (stylus) { %>'stylus:compile', <% } %>'clean', 'dojo:dist', 'copy' ]);
Expand Down

0 comments on commit be37e27

Please sign in to comment.