grunt --version && node --version && npm --version
"grunt": "~0.4.2"
- What OS are you running? Is it 32-bit, 64-bit? Ubuntu 13.04
| /** | |
| * Paste your Gruntfile (or important parts of it) here | |
| * | |
| */ | |
| module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| watch: { | |
| options: { | |
| livereload: true | |
| }, | |
| html: { | |
| files: ['**.php', '**.html'], | |
| }, | |
| js: { | |
| files: ['js/*.js'], | |
| tasks: [] | |
| }, | |
| css: { | |
| files: ['css/*.css'], | |
| tasks: ['cssmin'] | |
| } | |
| }, | |
| cssmin: { | |
| main: { | |
| expand: true, | |
| cwd: 'css', | |
| src: ['*.css'], | |
| dest: 'css/min', | |
| ext: '.min.css' | |
| } | |
| } | |
| }); | |
| grunt.event.on('watch', function(action, filepath, target) { | |
| grunt.log.writeln(target + ': ' + filepath + ' has ' + action); | |
| }); | |
| grunt.loadNpmTasks('grunt-contrib-watch'); | |
| grunt.loadNpmTasks('grunt-contrib-cssmin') | |
| grunt.registerTask('default', ['watch']); | |
| }; | |
| /** | |
| * Other Code below | |
| * | |
| */ |