Skip to content
This repository was archived by the owner on Mar 7, 2018. It is now read-only.

Commit 8222301

Browse files
committed
Allow override of dev server port.
1 parent 4cd54b6 commit 8222301

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

webpack.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ try {
1818
}
1919
}
2020

21+
var port = process.env.BRCAPORT || 8080;
22+
2123
module.exports = {
2224
historyApiFallback: true,
2325
entry: "./js/index",
@@ -26,6 +28,9 @@ module.exports = {
2628
publicPath: "/",
2729
filename: "[name].js"
2830
},
31+
devServer: {
32+
port: port
33+
},
2934
module: {
3035
loaders: [
3136
// The next three are required for muts-needle-plot.

0 commit comments

Comments
 (0)