Closed nparoski closed 1 year ago
this is merely a plugin for hooking up webpack and browser-sync. if this plugin would have them defined as dependencies, it would therefore enforce their versions and cause confusion. also this plugin does not refer/use the code of either of them – it is expected to be used in a project where both are already installed, as a plugin for webpack. thus they are only defined as peer dependencies. hope this helps.
Hello, I was creating custom webpack config and installed
browser-sync-webpack-plugin
It wouldn't work at all until I installed browser-sync as dev dependecy on my project. Can anyone provide explanation? What did I misunderstand and why isbrowser-sync
not a dependecy ofbrowser-sync-webpack-plugin
?webpack.config.js
package.json: