open-browser-once-plugin
v1.0.0
Published
Webpack Plugin for open browser once rather than many times
Downloads
142
Maintainers
Readme
open-browser-once-plugin
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
orgit 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)'
orgit 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 余聪, [email protected].
License
MIT - 余聪 🐟