
Security News
pnpm 10.12 Introduces Global Virtual Store and Expanded Version Catalogs
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.
browser-sync-dev-hot-webpack-plugin
Advanced tools
Combines BrowserSync, webpack-dev-middleware, and webpack-hot-middleware into one plugin
Combines browser-sync
, webpack-dev-middleware
, and webpack-hot-middleware
into one plugin.
npm install --save-dev browser-sync-dev-hot-webpack-plugin
const BROWSER_SYNC_OPTIONS = {};
const DEV_MIDDLEWARE_OPTIONS = {
publicPath: '/my/public/path'
};
const HOT_MIDDLEWARE_OPTIONS = {};
const webpackConfig = {
// Some options...
plugins: [
// Other plugins...
new BrowserSyncHotPlugin({
browserSync: BROWSER_SYNC_OPTIONS,
devMiddleware: DEV_MIDDLEWARE_OPTIONS,
hotMiddleware: HOT_MIDDLEWARE_OPTIONS,
callback() {
console.log('Callback');
/*
// Use browser sync server api (https://browsersync.io/docs/api)
const { watcher: bs } = this;
bs.notify("Hello! It's callback function from BrowserSyncHotPlugin!");
*/
}
})
// Other plugins...
]
// Some options...
};
module.exports = webpackConfig;
See related packages docs.
browser-sync - Keep multiple browsers & devices in sync when building websites.
webpack-dev-middleware - Offers a dev middleware for webpack, which arguments a live bundle to a directory.
webpack-hot-middleware - Webpack hot reloading you can attach to your own server.
Feel free to push your code if you agree with publishing under the MIT license.
0.2.2 - 2018-03-26
webpack-dev-middleware@2
.FAQs
Combines BrowserSync, webpack-dev-middleware, and webpack-hot-middleware into one plugin
The npm package browser-sync-dev-hot-webpack-plugin receives a total of 13 weekly downloads. As such, browser-sync-dev-hot-webpack-plugin popularity was classified as not popular.
We found that browser-sync-dev-hot-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.
Security News
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.