Webpack Plugin for open browser once rather than many times






> Webpack Plugin for open browser once rather than many times
open-browser-plugin would open multiple same tabs after webpack run many times. But open-browser-once-plugin open it once.
``bash`
npm install open-browser-once-pluginor use yarn
yarn add open-browser-once-plugin
`javascript
import { OpenBrowserOncePlugin } from 'open-browser-once-plugin'
module.exports = {
// ...
plguins: [new OpenBrowserOncePlugin('http://localhost:8080/app')]
}
`
- Fork it!
- Create your new branch:
git checkout -b feature-new or git checkout -b fix-which-buggit commit -am 'feat: some description (close #123)'
- Start your magic work now
- Make sure npm test passes
- Commit your changes:
or git commit -am 'fix: some description (fix #123)'git push`
- Push to the branch:
- Submit a pull request :)
This library is written and maintained by 余聪, yucong@fenbi.com.
MIT - 余聪 🐟