Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huruji/open-browser-plugin
A webpack plugin to solve the problem that webpack-dev-server can not automatically open the browser via node api
https://github.com/huruji/open-browser-plugin
open-browser webpack webpack-dev-server webpack-plugin
Last synced: about 1 month ago
JSON representation
A webpack plugin to solve the problem that webpack-dev-server can not automatically open the browser via node api
- Host: GitHub
- URL: https://github.com/huruji/open-browser-plugin
- Owner: huruji
- Created: 2019-02-23T17:29:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-10-18T08:54:08.000Z (about 3 years ago)
- Last Synced: 2024-09-19T03:38:16.790Z (about 2 months ago)
- Topics: open-browser, webpack, webpack-dev-server, webpack-plugin
- Language: JavaScript
- Homepage:
- Size: 80.1 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
- awesome-github-star - open-browser-plugin - dev-server can not automatically open the browser via node api | huruji | 4 | (JavaScript)
README
# open-browser-plugin
A webpack plugin to solve the problem that webpack-dev-server can not automatically open the browser via node api## How to use
```js
npm i --save-dev open-browser-plugin
``````js
// webpack.config.js
const OpenBrowserPlugin = reuire('open-browser-plugin')const config = {
plugins: [
new OpenBrowserPlugin({
port: 8080
})
]
}
```## options
### portdefault `8080`
### host
default `localhost`
### protocol
default `http:`