-
-
Save duikb00t/6b3185210013c97c8ab4 to your computer and use it in GitHub Desktop.
This file contains 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.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