ericclemmons / ericclemmons/grunt-express-server
No page refresh but all else works
- Dominant language
- JavaScript
- Stars
- 249
- Forks
- 59
- PR merge metrics
- No merged PRs in 30d
Description
Watch detects changes and restarts express server.... but the browser never refreshes to see those changes.
Usually you have to inject livereload client into the html pages for this to work. However, I've not been able to find any details on how to do this with this module.
What am I doing wrong?
``` javascript
watch: { // grunt-contrib-watch
options: {
livereload: true
},
express: {
files: [ '<%= project.path.server %>/**/*.js' ],
tasks: [ 'express:dev' ],
options: {
spawn: false, // for grunt-contrib-watch v0.5.0+, "nospawn: true" for lower versions. Without this option specified express won't be reloaded
livereload: true
}
},
browserify: {
files: [
'<%= project.path.client %>/js/**/*.{jsx,js}'
],
tasks: ['browserify:dist']
},
sass: {
files: ['<%= project.path.client %>/sass/**/*.{css,scss}'],
tasks: ['sass:dist']
},
html: {
files: ['<%= project.path.client %>/**/*.html'],
tasks: ['copy:dist']
},
},
express: { // grunt-express-server
dev: {
options: {
script: '<%= project.path.server %>/app.js'
}
},
prod: {
options: {
script: '<%= project.path.server %>/app.js',
node_env: 'production'
}
}
},
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.