bnavetta / aurelia-polymer

Aurelia plugin to support Polymer
MIT License
18 stars 5 forks source link

export Aurelia/Polymer application #8

Open k2s opened 8 years ago

k2s commented 8 years ago

what is the optimal way to build Aurelia+Polymer application for production ?

there is gulp export in Aurelia skeleton which handles Aurelia part, but doesn't handle linked template files which Polymer uses.

would it be possible to add to aurelia-polymer plugin gulp task which would enhace aurelia-bundler plugin ?

bnavetta commented 8 years ago

Since the HTML imports use absolute paths, it should be enough to copy the bower_components directory. I haven't used it too much, but you could also try vulcanize or something similar to bundle the Polymer components, but that would require an extra layer of indirection since the HTML imports in your templates would still need to work.

bnavetta commented 8 years ago

I'm not entirely comfortable forcing users to structure their code such that something like vulcanize could be used automatically, so this might have to stay on a case-by-case basis.

ardean commented 7 years ago

Has anyone done this yet? I currently stuck on this problem: https://github.com/aurelia/html-import-template-loader/issues/15

bnavetta commented 7 years ago

Do you have aurelia-bundler set up for HTML imports?