mobile-vikings
Version:
Mobile Vikings API
32 lines (31 loc) • 917 B
JavaScript
module.exports = function(grunt) {
grunt.initConfig({
sass: {
dev: {
src: ['public/scss/screen.scss'],
dest: 'public/css/screen.css',
options: { // Target options
trace: true,
sourcemap: true,
debugInfo: true
},
},
},
watch: {
sass: {
// We watch and compile sass files as normal but don't live reload here
files: ['public/scss/*'],
tasks: ['sass'],
},
livereload: {
// Here we watch the files the sass task will compile to
// These files are sent to the live reload server after sass compiles to them
options: { livereload: true },
files: ['public/**/*', "views/*"],
},
},
});
grunt.loadNpmTasks("grunt-contrib-sass");
grunt.loadNpmTasks("grunt-contrib-watch");
grunt.registerTask('default', ["sass", 'watch']);
}