-
Notifications
You must be signed in to change notification settings - Fork 1
Running a server
This framework allows for two types of projects.
The first is a pure code package that has no front end and the second is a package that has a HTML element to it.
In the root folder there is a index.html file tries to load ./app/app.js using systemjs.
If you want to load index.html and run your application code you need to serve it.
There are two calls that help with this:
- serve
- serve:watch
Serve will build all code before firing up an instance of the browser using browserSync.
If you want to make changes to HTML or CSS and want the browser to automatically update when you save your changes use the watch command instead. Please note that watch does not monitor js files as recompiling your entire source base and performing transpilation may be expensive. If however you wish for this, you can update serve.js in the build folder and add js files to the watch list.
Please note that browser sync has some great features for UI design and development across multiple browsers at the same time. Please see more details here