PieLabs / serve-pie

A developer server for running pies locally
0 stars 0 forks source link

control-panel is added as a dependency to the demo - why not to serve-pie #7

Open edeustace opened 8 years ago

edeustace commented 8 years ago

When we launch the server we add control-panel as a dependency to the demo. We need to to this because you can only load polymer once into a page.

This makes it unclear to someone developing serve-pie what's happening, and really the control-panel is a dependency of the server not the demo.

edeustace commented 8 years ago

One option would be to serve the server's assets and the demo's assets from the same path.. eg we could have demo/components/* first look in the demo's bower_components dir then fallback to serve-pie's bower_components dir.

We'd have to update demo/page/index.js to serve up assets from demo/*.