From bca9eaa37022ca8de7535bf6eca7a1687a5c8890 Mon Sep 17 00:00:00 2001 From: Vit Brunner Date: Tue, 11 Nov 2014 23:48:41 +0100 Subject: [PATCH] Grunt stylus with smartness --- Gruntfile.coffee | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 803f188..de459a1 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -139,16 +139,6 @@ module.exports = (grunt) -> } } - stylus: { - main: { - expand: true - cwd: 'source' - src: '**/*.styl' - dest: 'build' - ext: '.css' - } - } - uglify: { min: { files: { @@ -210,6 +200,11 @@ module.exports = (grunt) -> ext: '.html' }) + grunt.config 'stylus', add([['main', { + src: '**/*.styl' + ext: '.css' + }]]) + # Load tasks grunt.loadNpmTasks('grunt-contrib-coffee'); grunt.loadNpmTasks('grunt-contrib-connect');