@fishingbooker/browser-sync-plugin

1.0.4 • Public • Published

browser-sync-plugin

Automaticaly open browser when webpack finish compiling.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Installing

npm install --save @fishingbooker/browser-sync-plugin

In webpack.config.js insert this snippet.

const BrowserSyncPlugin = require("@fishingbooker/browser-sync-plugin");

const url = "www.google.com"; //Enter your developement url
const browserSyncPlugin = new BrowserSyncPlugin({url});

module.exports = {
    ...
    plugins: [browserSyncPlugin]
}

Whenever webpack finish compiling the browser will open given url.

Built With

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Package Sidebar

Install

npm i @fishingbooker/browser-sync-plugin

Weekly Downloads

1

Version

1.0.4

License

ISC

Unpacked Size

4.53 kB

Total Files

5

Last publish

Collaborators

  • dentex