Closed ymatuhin closed 4 years ago
Please try with these single settings:
const gulp = require("gulp");
const server = require("gulp-server-livereload");
gulp.task("webserver", function () {
gulp.src("app")
.pipe(server({
livereload: true,
open: true
}));
});
Maybe the problem is in clean
task.
After that, in the console use gulp webserver
or add it into the package.json.
{
"scripts": {
"start": "gulp webserver"
},
"dependencies": {
"gulp": "^3.9.1",
"gulp-server-livereload": "^1.9.2"
}
}
Then use npm start
or yarn start
don't you also need fallback: index.html
as well?
My gulp task:
Output in console: