Skip to content

Instantly share code, notes, and snippets.

@coppolaemilio
Created January 10, 2016 22:42
Show Gist options
  • Select an option

  • Save coppolaemilio/5aa656371a1ab5400b2a to your computer and use it in GitHub Desktop.

Select an option

Save coppolaemilio/5aa656371a1ab5400b2a to your computer and use it in GitHub Desktop.
Basic grunt with watch and minify for scss :)
(function () {
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
sass: {
dist: {
files: {
'./style/main.css': './style/main.scss'
}
}
},
cssmin: {
target: {
files: {
'./style/main.css': './style/main.css',
}
}
},
watch: {
style: {
files: ['./style/*.scss'],
tasks: ['default'],
}
}
});
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default', ['sass', 'cssmin']);
};
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment