私のグラントファイル:
...
connect: {
server: {
options: {
port: 8000,
hostname: 'localhost',
base: '.'
}
}
}
...
次に、 を実行するgrunt connect
と、次のように表示されます。
❯ grunt connect
Running "connect:server" (connect) task
Started connect web server on http://localhost:8000
Done, without errors.
❯
それではおしまいです。localhost:8000 に到達した場合。クロムが接続できないことがわかりました。