Search code examples
web-applicationsember.jsember-cliiphone-standalone-web-app

Ember.js Stand-Alone Browser App


I'm using Ember CLI for my project and was wondering if there was a way to build my project then open it in my browser by clicking on the index file.

My end goal is to wrap it and serve it as a desktop/ios/android app.


Solution

  • ember build --environment production

    this will create a build in the 'dist' directory. Included is a generated index.html

    run a server when in that directory (I use python -m SimpleHTTPServer 4200)

    then, when you go to localhost:4200 you'll be accessing your production build's index.html which will also server the other precompiled assets in that directory