Skip to content

@campino2k /Gruntfile.js
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Gruntfile with watch and less
/*global module:false*/
module.exports = function(grunt) {
// Initialisiert Grunt mit den folgenden Projekteinstellungen
grunt.initConfig({
less: {
development: {
options: {
paths: ["less"]
},
files: {
"style.css": "style.less"
}
},
production: {
options: {
paths: ["less"],
compress: true
},
files: {
"style.css": "style.less"
}
}
},
/*
Watch less files
*/
watch: {
styles: {
files: '*.less',
tasks: ['less:development']
}
}
});
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-watch');
// Default task, der ausgeführt wird, wenn man Grunt
// ohne weitere Parameter aufruft.
grunt.registerTask('default', 'less:development');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.