Socket
Socket
Sign inDemoInstall

browser-sync-dev-hot-webpack-plugin

Package Overview
Dependencies
645
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    browser-sync-dev-hot-webpack-plugin

Combines BrowserSync, webpack-dev-middleware, and webpack-hot-middleware into one plugin


Version published
Maintainers
1
Created

Changelog

Source

0.0.2 - 2017-02-14

  • Fixed: exported src directory in package.json.

Readme

Source

browser-sync-dev-hot-webpack-plugin

NPM version Travis Build Status dependencies Status devDependencies Status

Combines BrowserSync, webpack-dev-middleware, and webpack-hot-middleware into one plugin.

Install

npm install --save-dev browser-sync-dev-hot-webpack-plugin

Usage

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({
            browserSyncOptions: BROWSER_SYNC_OPTIONS,
            devMiddlewareOptions: DEV_MIDDLEWARE_OPTIONS,
            hotMiddlewareOptions: HOT_MIDDLEWARE_OPTIONS,
            callback() {
                console.log('Callback')
            }
        })
        // Other plugins...
    ]
    // Some options...
};

module.exports = webpackConfig;

Options

See related packages docs.

Contribution

Feel free to push your code if you agree with publishing under the MIT license.

Changelog

License

Keywords

FAQs

Last updated on 14 Feb 2017

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc