Gruntfile.js 519 B

1234567891011121314151617181920212223242526272829
  1. /**
  2. * Created by fy on 15-9-13.
  3. */
  4. 'use strict';
  5. var fs = require('fs');
  6. module.exports = function (grunt) {
  7. grunt.initConfig({
  8. pkg: grunt.file.readJSON('package.json'),
  9. watch: {
  10. live: {
  11. files: '**/*',
  12. options: {
  13. livereload: true /*35729*/
  14. }
  15. }
  16. }
  17. });
  18. //require('load-grunt-tasks')(grunt);
  19. grunt.loadNpmTasks('grunt-contrib-watch');
  20. grunt.registerTask('watch', ['watch']);
  21. };