Code Monkey home page Code Monkey logo

Comments (8)

schickling avatar schickling commented on July 17, 2024

Seems like a good idea! Could you open a PR with this feature + test coverage?

PS: I'm using browserify for my build process and keep my watched files to a minimum like this. But please go for your proposed feature! 👍

from gulp-webserver.

willhoag avatar willhoag commented on July 17, 2024

I started that PR and filtering the watch doesn't seem to be possible with the current implementation of node-watch (filtering works on when to call the callback), but perhaps this is an options: https://github.com/shama/gaze

Will look into further when I get a chance - might not be soon.

from gulp-webserver.

schickling avatar schickling commented on July 17, 2024

node-watch was just my first choice because it seems very lightweight and simple but gaze also seems like a nice option! Unfortunately I don't have the time to implement the filtering on my own now. But thanks a lot for all your effort!

from gulp-webserver.

willhoag avatar willhoag commented on July 17, 2024

Absolutely! Happy to contribute. Will take another look at it when I get a chance.

from gulp-webserver.

davejlong avatar davejlong commented on July 17, 2024

My PR replaces node-watch with the watch module. By default any path with node_modules or bower_components is ignored, but you can override this when configuring livereload. For example, here's a configuration that only ignores node_modules:

webserver({
    livereload: {
        enable: true,
        filter: function (filename) {
            if (filename.match(/node_modules/)) { return false; }
            else { return true; }
        }
    }
});

from gulp-webserver.

schickling avatar schickling commented on July 17, 2024

Nice! 👍

from gulp-webserver.

jdarling avatar jdarling commented on July 17, 2024

Is there going to be a merge that brings in the filter stuff? I tried it since this issue was closed, but seems filter isn't a valid option yet :(

from gulp-webserver.

schickling avatar schickling commented on July 17, 2024

It should be published with version 0.8.0 on NPM. Let me know if it's still not there yet.

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.