Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
browser-sync-dev-hot-webpack-plugin
Advanced tools
Changelog
0.2.2 - 2018-03-26
webpack-dev-middleware@2
.Readme
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.
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 28 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.