open-browser-once-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

open-browser-once-plugin

Build status Test coverage NPM version NPM Downloads Prettier Conventional Commits

Webpack Plugin for open browser once rather than many times

Why not open-browser-plugin

open-browser-plugin would open multiple same tabs after webpack run many times. But open-browser-once-plugin open it once.

Installation

npm install open-browser-once-plugin
# or use yarn
yarn add open-browser-once-plugin

Usage

import { OpenBrowserOncePlugin } from 'open-browser-once-plugin'

module.exports = {
  // ...
  plguins: [new OpenBrowserOncePlugin('http://localhost:8080/app')]
}

Contributing

  • Fork it!
  • Create your new branch:
    git checkout -b feature-new or git checkout -b fix-which-bug
  • Start your magic work now
  • Make sure npm test passes
  • Commit your changes:
    git commit -am 'feat: some description (close #123)' or git commit -am 'fix: some description (fix #123)'
  • Push to the branch: git push
  • Submit a pull request :)

Authors

This library is written and maintained by 余聪, yucong@fenbi.com.

License

MIT - 余聪 🐟

Package Sidebar

Install

npm i open-browser-once-plugin

Weekly Downloads

17

Version

1.0.0

License

MIT

Unpacked Size

7.88 kB

Total Files

6

Last publish

Collaborators

  • moyuyc