Giter Club home page Giter Club logo

Comments (5)

Industrial avatar Industrial commented on July 24, 2024

[gulp-sane-watch] 1 file changed (client/js/reducers.js)
[15:34:03] Starting 'compileBabel'...
[15:34:03] Finished 'compileBabel' after 59 ms
File change detected
[15:34:07] 2311829 bytes written (3.41 seconds)
File change detected

from live-server.

tapio avatar tapio commented on July 24, 2024

You can use --ignore and/or the new --ignorePattern parameters to exclude stuff from file watcher.

from live-server.

Industrial avatar Industrial commented on July 24, 2024

That would mean I'd have to explicitly configure files/paths for every project, while I've setup my gulp project/setup to compile "whatever is there" with babel/less/etc. I've moved on from browser page reloading to hot module reloading for this reason.

from live-server.

tapio avatar tapio commented on July 24, 2024

Just for reference, there is now also --watch=PATH,PATH2 param, which can be used to specify what files to watch ignoring everything else. So possibly something like live-server --watch=build could work in your case, though individually hotloadable js modules sound much better.

from live-server.

kylecordes avatar kylecordes commented on July 24, 2024

It seems to me that these various configurable watch and ignore options are missing the point. Live-server already has all of the information it needs to know what to watch: it knows exactly what files have been fetched by the browser. Why would anyone want to explicitly configure these files instead of using this information already present?

from live-server.

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.