Git Product home page Git Product logo

Comments (3)

wwwebman avatar wwwebman commented on August 10, 2024

Hi @innomerphey, thanks and:

  1. This way we inform BrowserSync about changes. I believe there are many more options. At least the following one does the same trick - https://browsersync.io/docs/api#api-stream.
  2. I saw no depreciation. Can you send a link where did you read that?

from gulp-webpack-starter.

innomerphey avatar innomerphey commented on August 10, 2024

You can find it here, they also removed the description of this parameter from the documentation.

https://github.com/BrowserSync/browser-sync/blob/92bf7d84894e9171ed8e313909d473bbd6c7368d/packages/browser-sync/lib/public/reload.js#L19

I mean that not everything can be streamed, I tried to stream in html, but a page still reloaded

from gulp-webpack-starter.

wwwebman avatar wwwebman commented on August 10, 2024
  1. Well, this still not argues that it was deprecated. But I would agree that our solution should we refactored with bs.stream().
  2. I don't know how do you understand how streaming works, but for me, it's the event the BrowserSync listens and reacts to it. As a result, it can inject or refresh:

Browsersync can watch your files as you work. Changes you make will either be injected into the page (CSS & images) or will cause all browsers to do a full-page refresh.

So to make an injection, you might need to use https://www.npmjs.com/package/bs-html-injector.
P.S. I have never tried this, but if you figure out how to integrate to gulp-webpack-starter, welcome to PR.

from gulp-webpack-starter.

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.