1
0
mirror of synced 2024-11-15 02:37:40 +01:00

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

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/"
}
}