Skip to content

Commit

Permalink
fix: set port outside server obj.
Browse files Browse the repository at this point in the history
  • Loading branch information
IvayloG committed Jul 19, 2018
1 parent c055dee commit c12aef1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/commands/start.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as browserSync from "browser-sync";
import * as bs from "browser-sync";
import * as path from "path";
import { exec } from "shelljs";
import { GoogleAnalytics } from "../GoogleAnalytics";
Expand Down Expand Up @@ -63,9 +63,10 @@ command = {

switch (framework.toLowerCase()) {
case "jquery":
const browserSync = bs.create("igniteui-cli");
const filePath = path.join(process.cwd(), "bs-config.js");
const bsConfig = require(filePath);
bsConfig.server.port = argv.port;
bsConfig.port = argv.port;
browserSync.init(bsConfig);
break;
case "react":
Expand Down

0 comments on commit c12aef1

Please sign in to comment.