Skip to content

Commit ff86550

Browse files
MimoNjvanbruegge
authored andcommitted
Enable devServer port to customize (#118)
1 parent e323c2b commit ff86550

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/cycle-scripts/configs/webpackDevServer.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,15 @@ const path = require('path')
3737

3838
const protocol = process.env.HTTPS === 'true' ? 'https' : 'http'
3939
const host = process.env.HOST || 'localhost'
40+
const port = process.env.PORT || 8000
4041

4142
const appDirectory = fs.realpathSync(process.cwd())
4243
function resolveApp (relativePath) {
4344
return path.resolve(appDirectory, relativePath)
4445
}
4546

4647
module.exports = {
47-
port: 8000, // tofix
48+
port,
4849
// Enable gzip compression of generated files.
4950
compress: true,
5051
// Silence WebpackDevServer's own logs since they're generally not useful.

0 commit comments

Comments
 (0)