I try to use both grunt-express-server, and grunt-contrib-watch, however, as soon as my express server starts up, it no longer looks at viewing or rebooting. I have installed the server installation in the background. My project is here: https://github.com/RyanHirsch/firem
Here is my Gruntfile.js
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
watch: {
options: {
livereload: true,
},
express: {
files: [ 'index.html', 'server.js' ],
tasks: [ 'express:dev' ],
options: {
spawn: false
}
}
},
express: {
options: {
},
dev: {
options: {
script: 'server.js'
}
}
}
});
grunt.registerTask('default', ['express:dev','watch']);
};
source
share