Local .env logic for webpack custom port

This commit is contained in:
Eliot Berriot 2018-03-29 19:55:24 +02:00
commit 96d219dfe2
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
4 changed files with 36 additions and 10 deletions

View file

@ -23,7 +23,7 @@ module.exports = {
},
dev: {
env: require('./dev.env'),
port: 8080,
port: parseInt(process.env.WEBPACK_DEVSERVER_PORT),
host: '127.0.0.1',
autoOpenBrowser: true,
assetsSubDirectory: 'static',