Code Monkey home page Code Monkey logo

Comments (7)

alnjxn avatar alnjxn commented on August 16, 2024 2

@slavafomin I would start with disabling the directoryListing option. Either by removing, as false by default, or by setting as directoryListing: false. My setup is working here is the config I am using.

// gulpfile.js
var gulp = require('gulp');
var webserver = require('gulp-webserver');

gulp.task('webserver', function() {
  gulp.src('public')
  .pipe(webserver({
    livereload: true,
    directoryListing: false,
    open: true
  }));
});

gulp.task('default', ['webserver']);

output from tree:

├── gulpfile.js
├── index.html
├── package.json
└── public
    ├── css
    │   └── style.css
    ├── img
    ├── index.html
    └── js

from gulp-webserver.

paulsonnentag avatar paulsonnentag commented on August 16, 2024

+1

from gulp-webserver.

vmadman avatar vmadman commented on August 16, 2024

+1

from gulp-webserver.

vmadman avatar vmadman commented on August 16, 2024

This is a duplicate of #26, I'm pretty sure

from gulp-webserver.

slavafomin avatar slavafomin commented on August 16, 2024

I wasn't being able to find any working Node web server to use with my single page application, so I've created a simple node server of my own on top of Connect and server-static. Maybe it will help someone: https://github.com/betsol/spa-server. Cheers!

from gulp-webserver.

 avatar commented on August 16, 2024

@slavafomin
make sure you are using a return statement in _all your streams, I experienced this same thing and going through all my gulp tasks and making sure they returned fix this issue for me

from gulp-webserver.

beeisabelm avatar beeisabelm commented on August 16, 2024

👍 @alnjxn

from gulp-webserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.