blob: 3dd0d82d5fa1c06adf7f9f19e2014546d394ce79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
module.exports = function (grunt) {
var path = require("path");
// Load NPM tasks
grunt.loadNpmTasks('grunt-contrib-less');
// Init GRUNT configuraton
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
less: {
development: {
options: {
compress: true,
yuicompress: true,
optimization: 2
},
files: {
"assets/static/style.css": "assets/stylesheets/main.less"
}
}
}
});
// Build
grunt.registerTask('build', [
'less'
]);
grunt.registerTask('default', [
'build'
]);
};
|