gulp-webserver
gulp-webserver copied to clipboard
When i delete build folder and create it, the sever localhost:port is not working
When i clean the build/ folder which will delete build/ folder and again it is created, but the server is not working for recreated build folder.
My code:
var stream = gulp.src('build') .pipe(gulpPluginLoad.webserver(someConfig)); setTimeout(function () { open('http://localhost:9000'); }, 100); return stream;
Can you give a more concrete example of your code. What is someConfig? What's gulpPluginLoad doing? Also use syntax highlighting like follows:
```javascript
var stream = gulp.src('build')
.pipe(gulpPluginLoad.webserver(someConfig));
setTimeout(function () {
open('http://localhost:9000');
}, 100);
return stream;
```
https://guides.github.com/features/mastering-markdown/