Skip to content

Instantly share code, notes, and snippets.

@iWader

iWader/Gruntfile.js

Last active Aug 29, 2015
Embed
What would you like to do?
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
less: {
dist: {
files: {
'public/assets/css/app.min.css': [
'public/assets/less/app.less'
],
'public/assets/css/vendor/bootstrap.min.css': [
'public/assets/less/vendor/bootstrap/bootstrap.less'
]
},
options: {
compress: true
}
}
},
watch: {
less: {
files: [
'public/assets/less/*.less',
'public/assets/less/vendor/bootstrap/*.less'
],
tasks: ['less']
}
}
});
// Load the grunt plugins
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-watch');
// Default tasks Grunt should run
grunt.registerTask('default', ['less']);
// Tasks Grunt should run under the dev command
grunt.registerTask('dev', [
'watch'
]);
};
{
"name": "my-project-name",
"version": "0.0.1",
"devDependencies": {
"grunt": "~0.4.2",
"grunt-contrib-less": "~0.11.0",
"grunt-contrib-watch": "~0.5.3"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment