Ember.js Stand-Alone Browser App

502 views Asked by At

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.

1

There are 1 answers

1
kaungst On BEST ANSWER

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