Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huruji/add-server-client-script-webpack-plugin
In order to solve the problem that webpack-dev-server need add client script to entry manually like `webpack-dev-server/client?http:localhost:8080` via node.js Api
https://github.com/huruji/add-server-client-script-webpack-plugin
Last synced: 3 months ago
JSON representation
In order to solve the problem that webpack-dev-server need add client script to entry manually like `webpack-dev-server/client?http:localhost:8080` via node.js Api
- Host: GitHub
- URL: https://github.com/huruji/add-server-client-script-webpack-plugin
- Owner: huruji
- Created: 2019-02-23T17:42:52.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-05-16T18:48:35.000Z (over 2 years ago)
- Last Synced: 2024-07-05T16:23:47.498Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 253 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
- awesome-github-star - add-server-client-script-webpack-plugin - dev-server need add client script to entry manually like `webpack-dev-server/client?http:localhost:8080` via node.js Api | huruji | 1 | (JavaScript)
README
# add-server-client-script-webpack-plugin
In order to solve the problem that webpack-dev-server need add script entry manually like `webpack-dev-server/client?http:localhost:8080` via node api## How to use
```js
npm i --save-dev add-server-client-script-webpack-plugin
``````js
// webpack.config.js
const AddServerClientScriptPlugin = reuire('add-server-client-script-webpack-plugin')const config = {
plugins: [
new AddServerClientScriptPlugin({
port: 8080
})
]
}
```## options
### portdefault `8080`
### host
default `localhost`
### protocol
default `http:`