ember-open-browser

1.0.0 • Public • Published

ember-open-browser

npm Version

A small addon that opens an ember-cli application, using the systems default web browser, after an initial build via ember s.

This is only made possible by prior work within create-react-app.

Installation

  • ember install ember-open-browser

Overriding Default Browser

Open browser using firefox instead of the system default: BROWSER=firefox ember s

Temporarily disable addon: BROWSER=none ember s

Overriding the URI

By default, ember-open-browser will use derive the host, port, and scheme from ember-cli. Typically this is http://localhost:4200/.

There may be instances where you'll want to override this URI to point somewhere else - especially useful when you have an nginx instance standing in front of ember-cli's web server.

This can be defined within .ember-cli within your project root.

{
  "open-browser-uri": "https://google.local"
}

Disabling addon

Setting the BROWSER environment variable to none will disable the addon. Example: BROWSER=none ember s

A more persistent method of disabling ember-open-browser is adding "noBrowser": true to .ember-cli

Licensing

MIT License

See LICENSE.md See open-browser/LICENSE.md

Package Sidebar

Install

npm i ember-open-browser

Weekly Downloads

62

Version

1.0.0

License

MIT

Unpacked Size

15.5 kB

Total Files

8

Last publish

Collaborators

  • jasonmit