DEV Community

Discussion on: Aurelia Script

Collapse
 
timfish profile image
Tim Fish

this can be fixed quite easily, just run a small static server to serve your content

It might be an easy fix for experimentation and Aurelia and Electron are great but you should not ship a production Electron app with a built in web server simply because aurelia-script doesn't work on file://.

Most of time you'll be lucky and port 45789 will be available on the machine but Aurelia works perfectly well with Electron without exposing a server on localhost.

Collapse
 
tunaxor profile image
Angel Daniel Munoz Gonzalez

Yes, this was intended to test aurelia-script within electron and any potential gotchas (like the file:// part). I just wanted to share my experience about using it

I don't intend anyone to ship aurelia-script to production and I'm well aware of some aurelia + electron solutions