Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Add devServer shorthands for sockHost, sockPort, sockPath (#238)
Browse files Browse the repository at this point in the history
Resolves #231.
  • Loading branch information
joeldenning authored Feb 3, 2020
1 parent fe6c6da commit 115dbb9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,9 @@ config.devServer
.quiet(quiet)
.setup(setup)
.socket(socket)
.sockHost(sockHost)
.sockPath(sockPath)
.sockPort(sockPort)
.staticOptions(staticOptions)
.stats(stats)
.stdin(stdin)
Expand Down
3 changes: 3 additions & 0 deletions src/DevServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ module.exports = class extends ChainedMap {
'quiet',
'setup',
'socket',
'sockHost',
'sockPath',
'sockPort',
'staticOptions',
'stats',
'stdin',
Expand Down
3 changes: 3 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ declare namespace Config {
quiet(value: boolean): this;
setup(value: (expressApp: any) => void): this;
socket(value: string): this;
sockHost(value: string): this;
sockPath(value: string): this;
sockPort(value: number): this;
staticOptions(value: any): this;
stats(value: webpack.Options.Stats): this;
stdin(value: boolean): this;
Expand Down
3 changes: 3 additions & 0 deletions types/test/webpack-chain-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ config
.quiet(false)
.setup(app => {})
.socket('socket')
.sockHost('localhost')
.sockPath('/sockpath/')
.sockPort(8080)
.staticOptions({})
.stats({
reasons: true,
Expand Down

0 comments on commit 115dbb9

Please sign in to comment.