mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-18 16:45:11 +00:00
32 lines
729 B
JavaScript
32 lines
729 B
JavaScript
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'
|
|
]);
|
|
}; |