Gruntfile.js 536 B

12345678910111213141516171819202122232425
  1. module.exports = function(grunt) {
  2. grunt.initConfig({
  3. sass: {
  4. dist: {
  5. files: {
  6. 'app/css/application.css': 'app/sass/application.sass'
  7. }
  8. }
  9. },
  10. watch: {
  11. css: {
  12. files: ['app/sass/**/*.sass'],
  13. tasks: ['sass'],
  14. options: {
  15. livereload: true,
  16. },
  17. },
  18. }
  19. });
  20. // Load the npm installed tasks
  21. grunt.loadNpmTasks('grunt-contrib-watch');
  22. grunt.loadNpmTasks('grunt-contrib-sass');
  23. grunt.registerTask('default', ['sass','watch']);
  24. };