toshieeeee
6/28/2015 - 7:52 AM

grunt.js

grunt.js



module.exports = function(grunt) {
grunt.initConfig({
    compass: {                  // Task
      dist: {                   // Target
        options: { 
          config:'config/config.rb',               // Target options
        }
      }
    },
    browserSync: {
      dev: {
        bsFiles: {
          src : ['stylesheets/sp/*.css','*.html']
                 },
                options: {
                    watchTask: true,
                    server:'./'
                }
            }
      },
    watch:{
      options: {
      },
      files:['*.html','sass/sp/*.scss'],
      tasks:['compass']
    }
});



//plugin

grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-browser-sync'); 

//task

grunt.registerTask('default', ['compass','browserSync','watch']);
};