aurelia-polymer
aurelia-polymer copied to clipboard
export Aurelia/Polymer application
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 ?
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.
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.
Has anyone done this yet? I currently stuck on this problem: https://github.com/aurelia/html-import-template-loader/issues/15
Do you have aurelia-bundler
set up for HTML imports?