blob: a00e2f3a3779d97c221f8b91feac62c57575a2c5 (
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: {
"public/static/style.css": "public/stylesheets/main.less"
}
}
}
});
// Build
grunt.registerTask('build', [
'less'
]);
grunt.registerTask('default', [
'build'
]);
};
|