Last active
April 11, 2016 14:37
-
-
Save rvanzon/fb4f5cb83b96f2c368232218412d95ca to your computer and use it in GitHub Desktop.
Sails - add Stylus-support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// tasks/register/compileAssets.js | |
module.exports = function (grunt) { | |
grunt.registerTask('compileAssets', [ | |
'clean:dev', | |
'jst:dev', | |
'less:dev', | |
'copy:dev', | |
'coffee:dev', | |
'stylus:dev' | |
]); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.config.set('stylus', { | |
dev: { | |
files: [{ | |
expand: true, | |
cwd: 'assets/css/', | |
src: ['style.styl'], //Edit this to match your files | |
dest: '.tmp/public/css/', | |
ext: '.css' | |
}] | |
} | |
}); | |
grunt.loadNpmTasks('grunt-contrib-stylus'); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// tasks/register/syncAssets.js | |
module.exports = function (grunt) { | |
grunt.registerTask('syncAssets', [ | |
'jst:dev', | |
'less:dev', | |
'sync:dev', | |
'coffee:dev', | |
'stylus:dev' | |
]); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
And
npm install grunt-contrib-stylus