gulp-webserver icon indicating copy to clipboard operation
gulp-webserver copied to clipboard

When i delete build folder and create it, the sever localhost:port is not working

Open gokulkrishh opened this issue 11 years ago • 1 comments

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;

gokulkrishh avatar Aug 05 '14 12:08 gokulkrishh

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/

davejlong avatar Sep 10 '14 17:09 davejlong