Comments (3)
Hi @innomerphey, thanks and:
- 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.
- I saw no depreciation. Can you send a link where did you read that?
from gulp-webpack-starter.
You can find it here, they also removed the description of this parameter from the documentation.
I mean that not everything can be streamed, I tried to stream in html, but a page still reloaded
from gulp-webpack-starter.
- Well, this still not argues that it was deprecated. But I would agree that our solution should we refactored with
bs.stream()
. - 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)
- [GWS - 8] add editorconfig
- [GWS - 9] Structure changes
- [GWS 10] create unit tests
- After few seconds hmr thrown - ERR_INCOMPLETE_CHUNKED_ENCODING HOT 1
- [GWS - 12] Research: HMR (Webpack Hot Module Replacement) - The following modules couldn't be hot updated HOT 2
- [GWS - 13] Upgrading to babel-preset-env
- [GWS 14] 'NODE_ENV' is not recognized as an internal or external command, operable program or batch file. HOT 4
- 'NODE_ENV' is not recognized as an internal or external command, operable program or batch file.
- Why no webpack.config.js? HOT 2
- [GWS - 13] Big js bundle file size HOT 2
- Page in the browser in infinity refresh HOT 2
- About Deploy HOT 2
- Yarn start under Windows svg sprite problem HOT 1
- Not found bundle.js HOT 4
- ERR_INVALID_ARG_TYPE(name, 'string', value) HOT 1
- Infinity refresh on the Google Chrome HOT 2
- Infinite loading to all browsers HOT 3
- Gulp-Webpack-Starter not for Gulp 4? HOT 3
- [GWS - 7] update readme.md
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-webpack-starter.