Skip to content

Instantly share code, notes, and snippets.

@duikb00t
Last active November 12, 2015 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duikb00t/6b3185210013c97c8ab4 to your computer and use it in GitHub Desktop.
Save duikb00t/6b3185210013c97c8ab4 to your computer and use it in GitHub Desktop.
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dist: {
files: {
'assets/css/styles.css' : 'assets/css/style.scss'
}
}
},
watch: {
options: {
livereload: true,
},
css: {
files: '**/*.scss',
tasks: ['sass', 'cssmin']
},
tasks: [ 'sass', 'cssmin' ]
},
cssmin: {
minify: {
src: 'assets/css/*.css',
dest: 'assets/css/styles.min.css'
}
}
});
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.registerTask('default',['sass', 'watch', 'cssmin']);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment