Advertisement
Guest User

Untitled

a guest
Aug 29th, 2015
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module.exports = function(grunt) {
  2.     grunt.initConfig({
  3.         sass: {
  4.             options: {
  5.                 sourcemap: 'none'
  6.             },
  7.             app: {
  8.                 files: {
  9.                     'css/app.css': 'scss/app.scss'
  10.                 }
  11.             }
  12.         },
  13.         express: {
  14.             app: {
  15.                 options: {
  16.                     script: 'app.js'
  17.                 }
  18.             },
  19.         },
  20.         watch: {
  21.             options: {
  22.                 livereload: 1337
  23.             },
  24.             'app-sass': {
  25.                 files: 'scss/app.scss',
  26.                 tasks: ['sass:app', 'cssmin:app']
  27.             }
  28.         }
  29.     });
  30.  
  31.     grunt.loadNpmTasks('grunt-contrib-sass');
  32.     grunt.loadNpmTasks('grunt-express-server');
  33.     grunt.loadNpmTasks('grunt-contrib-watch');
  34.  
  35.     grunt.registerTask('default', ['sass', 'express', 'watch']);
  36. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement