2015-12-11 25 views

cevap

0

koşudan sonra sadece gulp çalıştırmak ionic serve

güncellemek için localhost

localhost kapatıp

34

Sen --nobrowser seçeneğinde geçmesi, ya da sadece -b olabilir tekrar ionic serve çalıştırmak gerekmez :

ionic serve --nobrowser 
+1

kullanımdan kaldırılmıştır Bu doğru cevap –

+0

Doğru Cevap, bu işe yaramaz! –

+0

TY bu benim için çalıştı! –

6

A @ Claudiu belirtilen ionic server -b bir tarayıcı başlatmayacak.

Bir tarayıcı başlatmak, ancak varsayılanı değil, -w seçeneğini kullanabilirsiniz. Chrome'u varsayılan tarayıcı, ancak bunun yerine Firefox kullanmak ionic serve istiyorsanız

Örneğin, sen

ionic serve -w "path/to/firefox.exe" ya da Firefox yolunda ise sadece ionic serve -w firefox gibi bir şey yapabilirsiniz. ionic serve seçenekleri

diğer bilgiler:

0

http://ionicframework.com/docs/v2/cli/serve/ Merhaba sen package.json geçirebilirsiniz:

"scripts": { 
"clean": "ionic-app-scripts clean", 
"build": "ionic-app-scripts build", 
"lint": "ionic-app-scripts lint", 
"ionic:build": "ionic-app-scripts build", 
"ionic:serve": "ionic-app-scripts serve" 

}

ve ionic:serve geçmek. Böyle : "ionic:serve": "ionic-app-scripts serve --nobrowser"

ve projenizin terminalde çalıştırın: npm run ionic:serve

2

ionic serve --no-open yeni komuttur. No-tarayıcı

İlgili konular