allow custom ports for Grunt tasks

This commit is contained in:
retnikt 2020-01-27 18:55:50 +00:00
parent f7be8d720b
commit 4b6cebc068
No known key found for this signature in database
GPG Key ID: A0737A99C8F3201F
1 changed files with 2 additions and 1 deletions

View File

@ -219,6 +219,7 @@ module.exports = function (grunt) {
options: {
webpack: webpackConfig,
host: "0.0.0.0",
port: grunt.option("port") || 8080,
disableHostCheck: true,
overlay: true,
inline: false,
@ -275,7 +276,7 @@ module.exports = function (grunt) {
connect: {
prod: {
options: {
port: 8000,
port: grunt.option("port") || 8000,
base: "build/prod/"
}
}