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']);
};