Va1 / browser-sync-webpack-plugin

Easily use BrowserSync in your Webpack project.
MIT License
369 stars 40 forks source link

passing an anonymous function to as a browser-sync callback that call… #74

Closed rsoury closed 4 years ago

rsoury commented 6 years ago

…s the options.callback and passes the browser-sync instance to it as a parameter. This allows for the webpack configurer to manipulate browser sync within the callback.

This new and small feature allows me to file watcher files outside the webpack watch zone, and auto-reload the browser when they change too. I'm building a website where my view and assets sit separately.

rsoury commented 6 years ago

Found out that I could set file paths for browser-sync to watch manually... making this use case obsolete.

Up to you if you think passing an instance of browserSync to the callback would useful for further flexibility.

Otherwise, this can be closed.

Va1 commented 4 years ago

i would close it for now. overwhelming amount of style changes. i'll return to it if mentioned flexibility is needed. thank you