Skip to content

Instantly share code, notes, and snippets.

@bt4R9
Last active January 1, 2016 03:29
Show Gist options
  • Save bt4R9/8086017 to your computer and use it in GitHub Desktop.
Save bt4R9/8086017 to your computer and use it in GitHub Desktop.
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
stylus: {
compile: {
files: {
'dest/style.css': ['src/*.styl']
}
}
},
autoprefixer: {
single_file: {
src: 'dest/style.css',
dest: 'dest/style.css'
}
},
csso: {
dist: {
files: {
'dest/style.css': ['dest/style.css']
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-stylus');
grunt.loadNpmTasks('grunt-autoprefixer');
grunt.loadNpmTasks('grunt-csso');
grunt.registerTask('default', ['stylus']);
grunt.registerTask('static', 'build css files', function(args) {
grunt.task.run('stylus', 'autoprefixer', 'csso');
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment