Snippet from Gruntfile.js:
connect: {
options: {
port: 4000,
hostname: 'localhost',
livereload: 4002
},
livereload: {
options: {
open: true,
middleware: function (connect) {
return [
connect.static('.tmp'),
connect().use(
'/bower_components',
connect.static('./bower_components')
),
connect().use(
'/app/styles',
connect.static('./app/styles')
),
connect.static(appConfig.app)
];
}
}
}
Content of Package.json (npm):
{
"name": "ukrbook",
"version": "0.0.0",
"license": "MIT",
"description": "text",
"dependencies": {
"chokidar": "^1.4.3",
"grunt-contrib-imagemin": "^1.0.0",
"livereload-js": "^2.2.2"
},
// More dependencies listed here...
"scripts": {
"test": "grunt test"
}
}
I've been facing an issue with livereload not loading properly. Every time I run 'grunt serve' and try to reload the page, a console error pops up: https://i.sstatic.net/2uLJU.png I've experimented with different configurations and even reinstalled livereload, but the problem persists. Any ideas on what could be causing this? It simply doesn't seem to recognize it. https://i.sstatic.net/HJPTh.png