open-browser-once-plugin

Webpack Plugin for open browser once rather than many times

Usage no npm install needed!

<script type="module">
  import openBrowserOncePlugin from 'https://cdn.skypack.dev/open-browser-once-plugin';
</script>

README

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 - 余聪 🐟